Automatically reload env in Next.js dev server if .env* -file in monorepo root is modified #30142
DanielGiljam
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have environment variables for my Next.js application defined in .env* -files in the monorepo root because some other projects in the monorepo also rely those same environment variables. I wish my Next.js dev server would reload automatically when I make changes to those .env* -files the same way it automatically reloads if I make changes to .env* -files which reside next to the next.config.ts (in the Next.js application's project directory).
Could perhaps something be added to the
withNxplugin exported from@nx/nextwhich enables the same reloading functionality for monorepo root .env* -files as well?Beta Was this translation helpful? Give feedback.
All reactions