bland-arm-84974
04/26/2023, 7:53 PMenv.development, and an .env.production which both specify an API_URL variable. What would the equivalent here be?
Thanks 😄agreeable-painting-48846
04/26/2023, 7:59 PM//${windows.location.host}/api/whatever-you-want-here as it supports both http/https on the frontend side (and afaik works regardless of whether in dev or prod) then for the backend if we're trying to make a cors layer or something, typically I store them as secrets in Secrets.toml using the shuttle-secrets crate: https://docs.shuttle.rs/resources/shuttle-secretsagreeable-painting-48846
04/26/2023, 8:01 PMSecrets.dev.toml file (which the deployer will know to prioritise over Secrets.toml if you are in dev) and then copy over whatever secrets I need that are shared between both then just change whatever I need in the Secrets.dev.toml filebland-arm-84974
04/26/2023, 8:04 PM