From da03367cc502199b0a5adedf9e9310e41ef64ec3 Mon Sep 17 00:00:00 2001 From: Ryan Lewis <93001277+rylew1@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:27:05 -0800 Subject: [PATCH] [Issue #1295]: add env vars for local and prod (#1384) ## Summary Fixes #1295 ### Time to review: 2 mins ## Changes proposed - add `NEXT_PUBLIC_API_URL` for local and prod (todo ticket created to come back around for dev and stage) --- frontend/.env.development | 4 +++- frontend/.env.production | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 frontend/.env.production diff --git a/frontend/.env.development b/frontend/.env.development index 520448930..a532c14fc 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -12,4 +12,6 @@ NEXT_PUBLIC_BASE_PATH= # Put the following secrets into a .env.local file for local development SENDY_API_KEY= SENDY_API_URL= -SENDY_LIST_ID= \ No newline at end of file +SENDY_LIST_ID= + +NEXT_PUBLIC_API_URL=http://localhost:8080 diff --git a/frontend/.env.production b/frontend/.env.production new file mode 100644 index 000000000..0db7b3fde --- /dev/null +++ b/frontend/.env.production @@ -0,0 +1,17 @@ +# !! Don't put secrets in this file. Use .env.local for secrets instead !! +# This file is checked into your git repo and provides defaults for non-sensitive +# env vars when running `next dev` only. +# Learn more: https://nextjs.org/docs/app/building-your-application/configuring/environment-variables + +# This is used to determin if this is a prod or a non prod environment for deployed environments. Currently used for noindex and google tag manager logic +NEXT_PUBLIC_ENVIRONMENT=prod + +# If you deploy to a subpath, change this to the subpath so relative paths work correctly. +NEXT_PUBLIC_BASE_PATH= + +# Put the following secrets into a .env.local file for local development +SENDY_API_KEY= +SENDY_API_URL= +SENDY_LIST_ID= + +NEXT_PUBLIC_API_URL=http://api-prod-342430507.us-east-1.elb.amazonaws.com