diff --git a/.gitignore b/.gitignore index ad995bc..49a3e1b 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ log/** release/* src/db/wgdashboard.db .jshintrc -node_modules/** \ No newline at end of file +node_modules/** +*/proxy.js \ No newline at end of file diff --git a/src/static/app/.gitignore b/src/static/app/.gitignore index 8ee54e8..2028f4a 100644 --- a/src/static/app/.gitignore +++ b/src/static/app/.gitignore @@ -28,3 +28,4 @@ coverage *.sw? *.tsbuildinfo +proxy.js diff --git a/src/static/app/vite.config.js b/src/static/app/vite.config.js index 5d6944c..d997721 100644 --- a/src/static/app/vite.config.js +++ b/src/static/app/vite.config.js @@ -1,6 +1,7 @@ import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' +import {proxy} from "./proxy.js"; import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ @@ -15,7 +16,7 @@ export default defineConfig({ }, server:{ proxy: { - '/api': 'http://178.128.231.4:10086' + '/api': proxy } } })