Set default URLs for backend and app environments
All checks were successful
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Successful in 1m13s

Added fallback default URLs for BACKEND_API_URL and APP_URL when environment variables are not defined. This ensures the application functions correctly in environments without explicit configuration.
This commit is contained in:
2025-03-17 12:25:55 +01:00
parent 7d0319462e
commit ebfa57abc9

View File

@@ -1,4 +1,5 @@
export const RESERVED_SLUGS = ["new", "edit", "delete", "settings"];
export const BACKEND_API_URL = process.env.NEXT_PUBLIC_API_URL;
export const BACKEND_API_URL =
process.env.NEXT_PUBLIC_API_URL || "https://api.eventspace.pragmazest.com";
export const APP_URL =
process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000";
process.env.NEXT_PUBLIC_APP_URL || "https://eventspace.pragmazest.com";