Skip to content

Commit

Permalink
Set different default values to environment variables (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathms authored Mar 14, 2022
1 parent f48957f commit d884835
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT_PUBLIC_MEASUREMENTS_URL=https://api.ooni.io
NEXT_PUBLIC_AGGREGATION_API=https://api.ooni.io
NEXT_PUBLIC_EXPLORER_URL=https://explorer.ooni.org
# Variables common to all environments
# To override locally, make a copy called `.env.local` (which is not loaded when NODE_ENV=test.)
# Refer: https://nextjs.org/docs/basic-features/environment-variables

PORT=3100
7 changes: 7 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Used only in development environments
# To override locally, make a copy called `.env.development.local`
# Refer: https://nextjs.org/docs/basic-features/environment-variables

NEXT_PUBLIC_MEASUREMENTS_URL=https://ams-pg-test.ooni.org
NEXT_PUBLIC_AGGREGATION_API=https://backend-fsn.ooni.org
NEXT_PUBLIC_EXPLORER_URL=http://localhost:3100
4 changes: 4 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Used only in producition
# To override locally, make a copy called `.env.production.local`
# Refer: https://nextjs.org/docs/basic-features/environment-variables

NEXT_PUBLIC_MEASUREMENTS_URL=https://api.ooni.io
NEXT_PUBLIC_AGGREGATION_API=https://backend-fsn.ooni.org
NEXT_PUBLIC_SENTRY_DSN=https://49af7fff247c445b9a7c98ee21ddfd2f@o155150.ingest.sentry.io/1427510
Expand Down
4 changes: 4 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Used in test/CI environemnts
# To override locally, make a copy called `.env.test.local`
# Refer: https://nextjs.org/docs/basic-features/environment-variables

NEXT_PUBLIC_MEASUREMENTS_URL=https://ams-pg-test.ooni.org
NEXT_PUBLIC_EXPLORER_URL=https://explorer-test.ooni.io
NEXT_PUBLIC_AGGREGATION_API=https://backend-fsn.ooni.org

1 comment on commit d884835

@vercel
Copy link

@vercel vercel bot commented on d884835 Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.