Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Backend API base URL from environment variable - using runtime config for NextJS #60

Open
shahariaazam opened this issue Sep 15, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@shahariaazam
Copy link
Member

When running in docker, we should be able to set the backend api endpoint (API_BASE_URL) as an environment variable. So the same docker image can be used for various deployment.

Currently the frontend will by default set the API base url to http://localhost:8080

Reference: vercel/next.js#44628

@shahariaazam shahariaazam added the help wanted Extra attention is needed label Sep 15, 2024
@shahariaazam
Copy link
Member Author

I think there is no straight-forward way due to the nature and limitation by NextJS. We wanted to do some experiment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant