This commit is contained in:
2026-01-12 21:13:21 -05:00
parent 557f440256
commit 444dbe4458
5 changed files with 22 additions and 5 deletions

View File

@@ -4,11 +4,14 @@ import react from "@vitejs/plugin-react";
// Use environment variable for backend URL, default to localhost for local dev
const backendUrl = process.env.VITE_BACKEND_URL || "http://localhost:5001";
// Use environment variable for frontend port, default to 3000
const frontendPort = parseInt(process.env.PORT || process.env.VITE_PORT || "3000", 10);
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
port: frontendPort,
host: "0.0.0.0",
proxy: {
"/api": {