Compare commits
2 commits
e1f561d6af
...
e109a942f2
| Author | SHA1 | Date | |
|---|---|---|---|
| e109a942f2 | |||
| dfd521bb21 |
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = "0.5"
|
rocket = "0.5"
|
||||||
leptos = {version = "0.7.0-rc1" , features = ["ssr"]}
|
leptos = {version = "0.7.0-rc2" , features = ["ssr"]}
|
||||||
jiff = "0.1"
|
jiff = "0.1"
|
||||||
rocket_async_compression = "0.6"
|
rocket_async_compression = "0.6"
|
||||||
nanorand = { version = "0.7", features = ["chacha"] }
|
nanorand = { version = "0.7", features = ["chacha"] }
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use pages::*;
|
||||||
|
|
||||||
#[rocket::launch]
|
#[rocket::launch]
|
||||||
fn rocket() -> _ {
|
fn rocket() -> _ {
|
||||||
let assets = std::env::var("PLCOM_ASSETS_PATH").unwrap_or("public".into());
|
let assets = std::env::var("PLCOM_ASSETS_PATH").unwrap_or("../../public".into());
|
||||||
|
|
||||||
let server = rocket::build()
|
let server = rocket::build()
|
||||||
.mount("/", rocket::fs::FileServer::from(assets))
|
.mount("/", rocket::fs::FileServer::from(assets))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue