Next.js Discord

Discord Forum

How to make next build work with .env.local (development build)

Unanswered
West African Crocodile posted this in #help-forum
Open in Discord
Avatar
West African CrocodileOP
I've tried doing this:
"build:dev": "NODE_ENV=development tinacms build && next build",

But Next still looks for the env variables in .env

1 Reply

Avatar
Spotted Rail
does creating .env.production help?