port
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user