web init
This commit is contained in:
22
schoolNewsWeb/vue.config.ts
Normal file
22
schoolNewsWeb/vue.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from "@vue/cli-service";
|
||||
|
||||
export default defineConfig({
|
||||
transpileDependencies: true,
|
||||
devServer: {
|
||||
host: "0.0.0.0",
|
||||
port: 8080,
|
||||
open: true,
|
||||
hot: true,
|
||||
historyApiFallback: true,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:8080",
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
"^/api": "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user