diff --git a/.env b/.env index cb5c0725f..8e6a897a3 100644 --- a/.env +++ b/.env @@ -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 diff --git a/.env.development b/.env.development new file mode 100644 index 000000000..65bc273f9 --- /dev/null +++ b/.env.development @@ -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 diff --git a/.env.production b/.env.production index 519672469..c0fe55866 100644 --- a/.env.production +++ b/.env.production @@ -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 diff --git a/.env.test b/.env.test index bd10a300a..92f4fcc37 100644 --- a/.env.test +++ b/.env.test @@ -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