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

Environment Variables Not Accessible When Starting via PM2 #1133

Open
mikuh opened this issue May 11, 2024 · 1 comment
Open

Environment Variables Not Accessible When Starting via PM2 #1133

mikuh opened this issue May 11, 2024 · 1 comment

Comments

@mikuh
Copy link

mikuh commented May 11, 2024

When running the application with npm run dev or npm run preview, the environment variables are loaded correctly. However, when the application is started with pm2 start, it fails to access the environment variables.

@calycekr
Copy link

Also via node.js
node build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants