Files
DDDMicroFrontend/back-end/vite.config.ts

14 lines
383 B
TypeScript

import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
server: {
host: "0.0.0.0",
port: 3210, // 设置Vite开发服务器端口
strictPort: true, // 严格使用指定端口,如果被占用则报错
// 可选:允许跨域请求
cors: true,
},
plugins: [ fresh() ],
});