implement secrets read from env vars
This commit is contained in:
@@ -36,6 +36,18 @@ Additionally, Cargo.toml may need updating as new versions of the dependencies a
|
||||
cargo leptos watch
|
||||
```
|
||||
|
||||
Copy `dev.env` to `.env`, then replace the placeholder with a unique secret
|
||||
before starting the server. The `.env` file is loaded automatically at startup
|
||||
and is ignored by Git. `DEV_SECRET_KEY` authorizes server status changes and
|
||||
submission-history access:
|
||||
|
||||
```powershell
|
||||
Copy-Item dev.env .env
|
||||
```
|
||||
|
||||
You can also provide `DEV_SECRET_KEY` through the process environment. Do not
|
||||
commit secrets or expose them in client-side code.
|
||||
|
||||
## Installing Additional Tools
|
||||
|
||||
By default, `cargo-leptos` uses `nightly` Rust, `cargo-generate`, and `sass`. If you run into any trouble, you may need to install one or more of these tools.
|
||||
|
||||
Reference in New Issue
Block a user