Skip to content

docs: add section on configuring different environments for web frameworks #8779

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/frameworks/docs/frameworks-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ live site:
1. Run `firebase deploy` from the terminal.
2. Check your website on: `SITE_ID.web.app` or `PROJECT_ID.web.app` (or your custom domain, if you set one up).

## Configure different environments

You can deploy multiple sets of environment variables for different project environments, such as staging and production.

* If you have a `staging` project alias, you can deploy environment variables from a `.env.staging` file.
* If you have a `production` project alias, you can deploy environment variables from a `.env.production` file.
* If you have a project with id `PROJECT_ID`, you can deploy environment variables from a `.env.PROJECT_ID` file.

See the [Cloud Functions documentation](https://firebase.google.com/docs/functions/config-env?gen=2nd#deploying_multiple_sets_of_environment_variables) for a detailed guide.

## Next steps

See the detailed guide for your preferred framework:
Expand Down
Loading