Next.js Discord

Discord Forum

Deploying with output "standalone"

Unanswered
Thai posted this in #help-forum
Open in Discord
ThaiOP
Hi, i can't figure out how to get my env files and everything inside standalone, it doesnt work when i try to deploy it.

3 Replies

Western paper wasp
@Thai hi.Pass env via process.env (docker, vercel, etc) or explicitly copy .env next to server.js and load it manually (dotenv)
In case u have sensitive environment variables ^