Inject API base URL into Next at build

This commit is contained in:
kurt-mcrae 2024-12-16 21:52:37 +11:00
parent 3e197bff19
commit f79ba0105f
2 changed files with 4 additions and 0 deletions

View File

@ -9,3 +9,5 @@ NSW_FUEL_API_AUTH_HEADER=MU1ZU1JBeDV5dnFIVVpjNlZHdHhpeDZvTUEycWdmUlQ6Qk12V2FjdzE
# Deployment environment - update this to the deployed app's domain
ALLOWED_ORIGINS=https://your.domain.tld
# This is a reasonable schema, but you could set this to api.your.domain.tld, or whatever you need
API_BASE_URL=https://your.domain.tld

View File

@ -65,3 +65,5 @@ services:
ports:
#adjust the port for the frontend here. For example, "8080:3000" would expose port 8080 instead
- "3000:3000"
environment:
- NEXT_PUBLIC_API_BASE_URL=${API_BASE_URL}