refactor WebSocket and fetch API URLs to use environment variables for better configuration

This commit is contained in:
ishikabhoyar
2025-11-03 14:25:01 +05:30
parent 6ef2edb768
commit 2508731ec7
2 changed files with 13 additions and 2 deletions

7
Frontend/.env.example Normal file
View File

@@ -0,0 +1,7 @@
# Monaco Frontend Environment Variables
# Backend API URL (Monaco code execution server)
VITE_API_URL=http://localhost:8080
# Faculty API URL (Faculty/Student management backend)
VITE_FACULTY_API_URL=http://localhost:5000/api