Skip to content

Commit

Permalink
fix: don't transpile/override NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 6, 2023
1 parent 608f4b2 commit fd78055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nuxt-vitest/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export async function getVitestConfigFromNuxt(

return {
...options.viteConfig,
define: {
...options.viteConfig.define,
['process.env.NODE_ENV']: 'process.env.NODE_ENV'
},
server: {
...options.viteConfig.server,
middlewareMode: false,
Expand Down

0 comments on commit fd78055

Please sign in to comment.