Inject API base URL into Next at build
This commit is contained in:
parent
3e197bff19
commit
f79ba0105f
@ -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
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user