monorepo-microservice-rbac/apps/cert/vite.config.ts

24 lines
463 B
TypeScript
Raw Permalink Normal View History

2023-08-27 14:37:59 +08:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": resolve(__dirname, "src"),
"@@": resolve(__dirname, "core"),
},
},
server: {
port: 5173,
proxy: {
"/cert": {
target: "http://localhost:12144",
changeOrigin: true,
},
},
},
});