Passport/pkg/views/vite.config.ts

28 lines
627 B
TypeScript
Raw Normal View History

2024-03-31 08:03:59 +00:00
import { fileURLToPath, URL } from "node:url";
2024-03-12 13:26:00 +00:00
2024-03-31 08:03:59 +00:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
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-03-12 13:26:00 +00:00
plugins: [vue(), vueJsx(), unocss()],
2024-02-25 15:12:42 +00:00
resolve: {
alias: {
2024-03-31 08:03:59 +00:00
"@": fileURLToPath(new URL("./src", import.meta.url))
}
2024-02-25 15:12:42 +00:00
},
2024-01-27 16:05:19 +00:00
server: {
proxy: {
2024-03-31 08:03:59 +00:00
"/api/notifications/listen": {
target: "ws://localhost:8444",
ws: true
},
2024-03-16 05:19:11 +00:00
"/api": "http://localhost:8444",
"/.well-known": "http://localhost:8444"
2024-01-27 16:05:19 +00:00
}
}
2024-03-31 08:03:59 +00:00
});