generated from template/vite-3d-template
update
This commit is contained in:
20
vite.config.ts
Normal file
20
vite.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import basicSsl from '@vitejs/plugin-basic-ssl'
|
||||
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
plugins: [basicSsl()],
|
||||
server: {
|
||||
https: true,
|
||||
host: true,
|
||||
port: 3000,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "https://kevisual.xiongxiao.me",
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, "/api")
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user