Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion DEPLOYMENT_EXEDEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,23 @@ Update `vite.config.js` to allow requests from your exe.dev hostname:
```typescript
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { nodePolyfills } from 'vite-plugin-node-polyfills';

export default defineConfig({
plugins: [react()],
plugins: [
react(),
nodePolyfills({
globals: { Buffer: true, global: true, process: true },
include: ['buffer', 'crypto', 'events', 'process', 'stream', 'util', 'vm'],
}),
],
build: {
outDir: 'build',
},
test: {
globals: true,
environment: 'jsdom',
},
server: {
host: '0.0.0.0',
port: 5173,
Expand Down
Loading