-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Problem Description
Environment variables set in QuickStack are completely undefined in my Next.js application, during build time it is undefined and missing and runtime. This persists even after multiple rebuilds and redeploys.
Terminal log shows that they are defined but actually not.
Current Behavior
Environment variables (NEXT_PUBLIC_*) are completely undefined
No amount of rebuilding or redeploying fixes the issue
Application fails because required API URLs are missing
Hardcoding values works, but this is not a sustainable solution
Expected Behavior
Environment variables set in QuickStack should be available to the Next.js application both during build and at runtime.
Logs
Read logs from all running Containers.:
Next.js 15.5.2
2025-11-19T17:36:45.427850102Z - Local: http://localhost:xxxx
2025-11-19T17:36:45.427871169Z - Network: http://xxxxxx
2025-11-19T17:36:45.428110884Z
2025-11-19T17:36:45.428254117Z ✓ Starting...
2025-11-19T17:36:45.848208106Z ✓ Ready in 787ms
2025-11-19T17:36:46.175320704Z Environment variables check: {
2025-11-19T17:36:46.175356087Z hasPublicKey: true,
2025-11-19T17:36:46.175360191Z hasPrivateKey: true,
2025-11-19T17:36:46.175363891Z hasUrlEndpoint: true,
2025-11-19T17:36:46.175367248Z privateKeyLength: 36,
2025-11-19T17:36:46.175372075Z urlEndpoint: 'https://ik.imagekit.io/3tfnpu0nu'
2025-11-19T17:36:46.175377589Z }
But logs out in chrome shows that each one of these are undefined.
Environments for my backend app, an express js app is working but for the frontend Next are not.