initial commit
This commit is contained in:
21
Frontend/vite.config.ts
Normal file
21
Frontend/vite.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defineConfig } from "vite";
|
||||
import solidPlugin from "vite-plugin-solid";
|
||||
import { env } from "process";
|
||||
|
||||
const target = env.BACKEND_URL ?? "https://localhost:5001";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [solidPlugin()],
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
"^/api": {
|
||||
target,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
target: "esnext",
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user