Skip to content

Commit

Permalink
use local ip to allow for external connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Jul 17, 2023
1 parent 22599ce commit 722e837
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions apps/graph-editor/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import { resolve } from 'node:path';

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [tsconfigPaths(), react()],
build: {
target: ['es2020'],
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html')
}
}
},
optimizeDeps: {
esbuildOptions: {
target: 'es2020'
}
server: {
host: '0.0.0.0' // allow external connections
}
});

0 comments on commit 722e837

Please sign in to comment.