22 lines
372 B
TypeScript
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",
|
|
},
|
|
});
|