Environment
Node v20/v22 LTS
Windows 10
pnpm v10
Reproduction
import { defineNuxtConfig } from 'nuxt/config';
import { isDevelopment, nodeENV } from 'std-env';
console.log(process.env.NODE_ENV, { isDevelopment, nodeENV });
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-08-15',
devtools: { enabled: true },
});
Running pnpm dev
Describe the bug
Likely not a bug with the package, but I'm trying to investigate.
nodeENV returns an empty string, and isDevelopment is false, despite process.env.NODE_ENV being development. Could you possibly give me pointers on what may be causing my environment to have this? I am happy to investigate myself and report back + close issue.
Additional context
No response
Logs
Environment
Node v20/v22 LTS
Windows 10
pnpm v10
Reproduction
Running
pnpm devDescribe the bug
Likely not a bug with the package, but I'm trying to investigate.
nodeENVreturns an empty string, andisDevelopmentis false, despiteprocess.env.NODE_ENVbeingdevelopment. Could you possibly give me pointers on what may be causing my environment to have this? I am happy to investigate myself and report back + close issue.Additional context
No response
Logs