From 452097af8f3cfdcb41d5377bf49d3ec8cf80e17c Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Thu, 29 Aug 2024 19:35:03 +0200 Subject: [PATCH] [#51] Add source map --- vite.config.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vite.config.js b/vite.config.js index d9dd61c..a6e84f6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,20 +16,17 @@ export default defineConfig({ include: ["websocket", "tty", "http"], }), ], + build: { + sourcemap: true, + }, define: { "process.env": process.env, }, resolve: { mainFields: [], }, - server: { proxy: { - "/public/icons": { - target: "http://localhost:3000", - changeOrigin: true, - rewrite: (path) => path.replace(/^\/public\/icons/, "/public/icons"), - }, "/rest": { target: "http://localhost:18115/og_spipes", ws: true,