Files
MorphDoc/apps/web/vite.config.ts
T

24 lines
510 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { fileURLToPath } from "node:url";
export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
input: {
main: fileURLToPath(new URL("./index.html", import.meta.url)),
previewFrame: fileURLToPath(
new URL("./preview-frame.html", import.meta.url)
)
}
}
},
server: {
port: 5173,
proxy: {
"/api": "http://localhost:3001"
}
}
});