mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Continue to refactor the UI and APIs :)
This commit is contained in:
parent
e6e070d89e
commit
7cb1301e80
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ release/*
|
|||||||
src/db/wgdashboard.db
|
src/db/wgdashboard.db
|
||||||
.jshintrc
|
.jshintrc
|
||||||
node_modules/**
|
node_modules/**
|
||||||
|
*/proxy.js
|
1
src/static/app/.gitignore
vendored
1
src/static/app/.gitignore
vendored
@ -28,3 +28,4 @@ coverage
|
|||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
proxy.js
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { fileURLToPath, URL } from 'node:url'
|
import { fileURLToPath, URL } from 'node:url'
|
||||||
|
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
|
import {proxy} from "./proxy.js";
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
@ -15,7 +16,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
server:{
|
server:{
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': 'http://178.128.231.4:10086'
|
'/api': proxy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user