Skip to content

Commit

Permalink
fix(editor): Fix Vite dev mode (no-changelog)
Browse files Browse the repository at this point in the history
because of the updated dev tooling in n8n-io#5454, vite dev mode is crashing because of the `util` package looking for `process.env`.
  • Loading branch information
netroy committed Feb 14, 2023
1 parent 36108f8 commit 79ebb78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default mergeConfig(
// This causes test to fail but is required for actually running it
...(process.env.NODE_ENV !== 'test' ? { global: 'globalThis' } : {}),
BASE_PATH: `'${publicPath}'`,
process: { env: {} },
},
plugins: [
vue(),
Expand Down

0 comments on commit 79ebb78

Please sign in to comment.