A real-time collaborative code editor featuring unique room generation, syntax highlighting, and auto-suggestions. Users can seamlessly edit, save, and download files while communicating through group chat
The project now supports local hosting in addition to previously supporting only Vercel-hosted links. Feel free to contribute by exploring and enhancing this feature or other areas of the project! #24
import.meta.env.VITE_BACKEND_URL: Fetches the backend URL from the environment variables defined in the project, typically set during deployment or development.
|| "http://localhost:3000": Provides a fallback to the local backend URL (http://localhost:3000) if the environment variable VITE_BACKEND_URL is not set.
This ensures compatibility for both local development and deployed environments, allowing the application to work seamlessly in both scenarios.
It enables developers to switch between environments effortlessly.
Description:
import.meta.env.VITE_BACKEND_URL
: Fetches the backend URL from the environment variables defined in the project, typically set during deployment or development.|| "http://localhost:3000"
: Provides a fallback to the local backend URL (http://localhost:3000
) if the environment variableVITE_BACKEND_URL
is not set.It enables developers to switch between environments effortlessly.