bibblan/Frontend/vite.config.ts
2025-09-04 23:56:24 +02:00

22 lines
372 B
TypeScript

import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import { env } from "process";
//test
const target = env.BACKEND_URL ?? "https://localhost:5001";
export default defineConfig({
plugins: [solidPlugin()],
server: {
port: 3000,
proxy: {
"^/api": {
target,
secure: false,
},
},
},
build: {
target: "esnext",
},
});