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

Unable to Set Environment Variable NUXT_PUBLIC_DEFAULT_SERVER in Docker Deployment #2713

Open
yeahwong opened this issue Mar 27, 2024 · 2 comments
Labels
c: bug Something isn't working

Comments

@yeahwong
Copy link

yeahwong commented Mar 27, 2024

During the deployment of my application using Docker(ghcr.io/elk-zone/elk:main), I've encountered an issue: I'm unable to set the environment variable NUXT_PUBLIC_DEFAULT_SERVER successfully. Despite trying many times, I've been unsuccessful.

Specifically, I attempted to set it using the -e NUXT_PUBLIC_DEFAULT_SERVER=example.com format in the Docker startup command. However, it seems that the variable isn't being properly set within the running container.

Has anyone else faced a similar issue during Docker deployment or do you have any simple suggestions on how to correctly set the NUXT_PUBLIC_DEFAULT_SERVER environment variable within Docker?

Appreciate any insights or guidance on this matter!

@yeahwong yeahwong added c: bug Something isn't working s: pending triage Pending Triage labels Mar 27, 2024
Copy link

stackblitz bot commented Mar 27, 2024

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@shuuji3
Copy link
Member

shuuji3 commented Apr 3, 2024

It can relate to #1427. It seems that the current Docker setup requires to rebuild to configure the default server.

@shuuji3 shuuji3 removed the s: pending triage Pending Triage label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants