FrostByte/client-solid/vite.config.ts
2023-11-22 15:31:58 +01:00

23 lines
562 B
TypeScript

import { defineConfig } from "vite";
import { qrcode } from "vite-plugin-qrcode";
import solid from "vite-plugin-solid";
// https://vitejs.dev/config/
export default defineConfig({
// build: {
// outDir: '../server/public' // Override default outDir('dist')
// },
plugins: [solid(), qrcode()],
server: {
port: 3000,
open: true,
proxy: {
"/api": {
target: "http://localhost:8080/api",
changeOrigin: true,
secure: false,
rewrite: (path): string => path.replace(/^\/api/, ""),
},
},
},
});