| 1234567891011121314151617181920212223242526 |
- import { defineConfig } from "vite";
- import vue from "@vitejs/plugin-vue";
- import basicSsl from "@vitejs/plugin-basic-ssl";
- import { fileURLToPath, URL } from "node:url";
- export default defineConfig({
- base: "./",
- // plugins: [vue(), basicSsl()],
- plugins: [vue()],
- server: {
- host: "0.0.0.0",
- // https: true,
- proxy: {
- "/api": {
- // target: "http://192.168.20.61:8118/",
- target: "https://sit-chaoxuept.4dage.com/",
- changeOrigin: true,
- },
- },
- },
- resolve: {
- alias: {
- "@": fileURLToPath(new URL("./src", import.meta.url)),
- },
- },
- });
|