From 722e837d0aba56146b9cfadd5d2678cefb6e69c3 Mon Sep 17 00:00:00 2001 From: Ben Houston Date: Sun, 16 Jul 2023 21:35:25 -0400 Subject: [PATCH] use local ip to allow for external connections. --- apps/graph-editor/vite.config.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/apps/graph-editor/vite.config.js b/apps/graph-editor/vite.config.js index 18b28046..178cad73 100644 --- a/apps/graph-editor/vite.config.js +++ b/apps/graph-editor/vite.config.js @@ -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 } });