Using different environments -- command is erroneous #10935
Labels
help wanted
Issues looking for someone to run with them!
improve or update documentation
Enhance / update existing documentation (e.g. add example, improve description, update for changes)
📚 Subject area/topic
environment variables
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/guides/environment-variables/#setting-environment-variables
📋 Description of content that is out-of-date or incorrect
In order to use different env-files, current documentation states the following command
"astro dev --mode staging"
where 'staging' refers to an env-file '.env.staging'.
This command does not work. Imho the reason for that bug is the command is not complete.
When changed to
"astro dev -- --mode staging" [in my case prefixed with an "npm run " i now can switch between different env-files via the mode-option.
In Discord you find the same error, see https://discord.com/channels/830184174198718474/1306650092886954107
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: