bibblan/Frontend/vite.config.ts

23 lines
433 B
TypeScript

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