-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Convert site_address to site_addr #462
Conversation
So this fails because this example uses I think a |
If we were using serde for this, that'd be a great idea. So if they're doing get_configuration(None), which should be all cargo-leptos users, cargo-leptos reads all the vars and leptos uses env vars. Since it's site-addr not site-address, the host/port is never set in leptos, and it uses the default. If someone changes it, leptos will silently use the default. It's a change on cargo-leptos' side to read both and set both env vars. I don't think we want to have leptos start reading the config in this configuration. If they're using get_configuration(Some) with cargo-leptos, it would be working with site-address currently, since leptos is reading it correctly, and cargo-leptos is setting the wrong env var. They'll get an error with the change when they go to compile. If they're using get_configuration(Some) without cargo-leptos, it would be working currently with site-address. They'll get an error with the change when they go to compile. If they're using the builder, it would be working correctly now. They'll get an error with the change when they go to compile. So this seems like the best solution to me. |
Isn't and then deserialize from the TOML I'm probably missing something. |
Technically we are, in that the I see three possibilities here
I lean towards 2 and away from 3 because it provides the most consistency, and it seems like we're ok with breaking changes. I can do 3 if you'd like, although I imagine we'd want to make the breaking change away pretty soon in the future anyway |
Yeah, Option 2 sounds good; our next release will be |
Correct, #2 is this PR and should be ready to go |
Should fix #446, by changing leptos internal options to site_addr