Skip to content

Commit

Permalink
[Issue #1295]: add env vars for local and prod (#1384)
Browse files Browse the repository at this point in the history
## 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)
  • Loading branch information
rylew1 authored Mar 1, 2024
1 parent 7ecbc0f commit da03367
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -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=
SENDY_LIST_ID=

NEXT_PUBLIC_API_URL=http://localhost:8080
17 changes: 17 additions & 0 deletions frontend/.env.production
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da03367

Please sign in to comment.