Im a little confused whether we should fill up or leave .env file empty as it is? Since during execution each environment file (.env.dev / .env.production) will append all my values into .env
So what I'm saying is, keeping .env empty and only append env values into each environment files.
.env -> keep it empty
.env.developemnt -> env specific values
.env.development.local -> store all kind of secrets
#.gitignore
.env.development.local
Or, is there a "proper" way to handle this instead?
In other words, the first .env to match the order will be loaded.
You can delete .env if you don't use it.
https://nextjs.org/docs/basic-features/environment-variables#environment-variable-load-order