Passport/pkg/view/vite.config.ts
2024-02-25 23:12:42 +08:00

21 lines
438 B
TypeScript

import { defineConfig } from 'vite'
import path from "path";
import react from '@vitejs/plugin-react-swc'
import unocss from "unocss/vite"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), unocss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/.well-known": "http://localhost:8444",
"/api": "http://localhost:8444"
}
}
})