Skip to content

Error when using --dotenv flag #15046

@DamianGlowala

Description

@DamianGlowala

Environment


  • Operating System: Windows_NT
  • Node Version: v16.13.0
  • Nuxt Version: 3.0.0-rc.12-27736489.2e080c2
  • Nitro Version: 0.5.4-27726613.640c2b7
  • Package Manager: npm@8.13.2
  • Builder: vite
  • User Config: ssr, modules, css, typescript, alias, build, runtimeConfig, vue, vite, proxy
  • Runtime Modules: @nuxtjs/tailwindcss@5.3.3, floating-vue/nuxt, @pinia/nuxt@0.4.2, @vueuse/nuxt@9.2.0, unplugin-icons/nuxt, @formkit/nuxt@1.0.0-beta.11-c95e605, nuxt-proxy@0.2.4
  • Build Modules: -

Reproduction

image

image

Describe the bug

I cannot use a --dotenv flag with .env.production when building for production (even though the file exists).

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions