aboutsummaryrefslogtreecommitdiff
path: root/modern/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/vite.config.js')
-rw-r--r--modern/vite.config.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/modern/vite.config.js b/modern/vite.config.js
new file mode 100644
index 00000000..04cff5fb
--- /dev/null
+++ b/modern/vite.config.js
@@ -0,0 +1,18 @@
+import { defineConfig } from 'vite';
+import react from '@vitejs/plugin-react';
+import svgr from 'vite-plugin-svgr';
+import { VitePWA } from 'vite-plugin-pwa';
+
+export default defineConfig(() => ({
+ server: {
+ port: 3000,
+ proxy: {
+ '/api/socket': 'ws://localhost:8082',
+ '/api': 'http://localhost:8082',
+ },
+ },
+ build: {
+ outDir: 'build',
+ },
+ plugins: [svgr(), react(), VitePWA()],
+}));