leptos-rs / start-axum

Starter template for use with the Leptos web framework and Axum.
The Unlicense
145 stars 25 forks source link

What the metadata env value do? #37

Open psionic-k opened 8 months ago

psionic-k commented 8 months ago

https://github.com/leptos-rs/start-axum/blame/0448e6dbeb6edef2ca9e83bdaf08867ebfe43ab2/Cargo.toml#L84

I can't see what is reacting to this value or when it would be set to "PROD". Is it only read for certain deployment solutions?

gbj commented 8 months ago

Isn't it deserialized into the env field of LeptosOptions? It's purely optional but users can use that to toggle between (for example) development and production databases, depending on deployment.