Next.js Discord

Discord Forum

How to deploy a DEV environment with cross-env with NextJS 13

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
I try to run a build in development with AWS.
i try to run the command: "cross-env ENVIRONMENT=development next build && next export"

and i get this output on terminal:
cross-env ENVIRONMENT=development next build
info - Loaded env from .../dev-rv-front/.env.production

How can i generate 1 build to dev environment and 1 build to prd?

0 Replies