generated from template/vite-3d-template
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
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")
|
|
}
|
|
}
|
|
}
|
|
}) |