Skip to content

Environment Variables Completely Missing - Undefined Even After Rebuild/Redeploy #44

@omur00

Description

@omur00

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions