From 7cb1301e80dc942a8e6f410d95be610093c32616 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Thu, 11 Jan 2024 13:46:08 -0500 Subject: [PATCH] Continue to refactor the UI and APIs :) --- .gitignore | 3 ++- src/static/app/.gitignore | 1 + src/static/app/vite.config.js | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) 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 } } })