Skip to content

Commit

Permalink
fix: isCollecting not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 5, 2023
1 parent 4daf536 commit 4f6427c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/histoire/src/node/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,12 @@ export async function getViteConfigWithPlugins (isServer: boolean, ctx: Context)
__VUE_PROD_DEVTOOLS__: 'true',
// Disable warnings
'process.env.NODE_ENV': JSON.stringify(isServer ? 'production' : process.env.NODE_ENV ?? 'development'),
// Collect flag
'process.env.HST_COLLECT': 'false',
...!isServer
? {
// Collect flag
'process.env.HST_COLLECT': 'false',
}
: {},
},
cacheDir: isServer ? 'node_modules/.hst-vite-server' : 'node_modules/.hst-vite',
}
Expand Down

0 comments on commit 4f6427c

Please sign in to comment.