完成deno后端测试用的接口
This commit is contained in:
12
back-end/vite.config.ts
Normal file
12
back-end/vite.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineConfig } from "vite";
|
||||
import { fresh } from "@fresh/plugin-vite";
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3000, // 设置Vite开发服务器端口
|
||||
strictPort: true, // 严格使用指定端口,如果被占用则报错
|
||||
// 可选:允许跨域请求
|
||||
cors: true,
|
||||
},
|
||||
plugins: [fresh()],
|
||||
});
|
||||
Reference in New Issue
Block a user