Passport/pkg/view/vite.config.ts

21 lines
438 B
TypeScript
Raw Normal View History

2024-02-25 15:12:42 +00:00
import { defineConfig } from 'vite'
import path from "path";
import react from '@vitejs/plugin-react-swc'
import unocss from "unocss/vite"
2024-01-27 16:05:19 +00:00
2024-02-25 15:12:42 +00:00
// https://vitejs.dev/config/
2024-01-27 16:05:19 +00:00
export default defineConfig({
2024-02-25 15:12:42 +00:00
plugins: [react(), unocss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
2024-01-27 16:05:19 +00:00
server: {
proxy: {
2024-02-25 15:12:42 +00:00
"/.well-known": "http://localhost:8444",
"/api": "http://localhost:8444"
2024-01-27 16:05:19 +00:00
}
}
2024-02-25 15:12:42 +00:00
})