Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What the metadata env value do? #37

Open
psionic-k opened this issue Mar 21, 2024 · 1 comment
Open

What the metadata env value do? #37

psionic-k opened this issue Mar 21, 2024 · 1 comment

Comments

@psionic-k
Copy link

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
Copy link
Contributor

gbj commented Mar 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants