Use Case
Frontend and backend are separate repos. You want one workspace to run both processes and keep browser sessions aligned.
Use this when frontend and backend live in different projects but you want one active workspace context for both.
Frontend and backend are separate repos. You want one workspace to run both processes and keep browser sessions aligned.
The frontend workspace must own both frontend and backend services and run both processes if it is the central context for both services.
Services: frontend, backend
Frontend Server: API_URL=$SPACES_BACKEND_URL PORT=$SPACES_FRONTEND_PORT npm run dev
Backend Server: cd /path/to/backend-project && python manage.py runserver 0.0.0.0:$SPACES_BACKEND_PORT
Browser Session: $SPACES_FRONTEND_URLThe backend server is started from the frontend workspace so both processes can receive the same SPACES_<SERVICE>_PORT and SPACES_<SERVICE>_URL env vars Spaces injects for each service. The backend row can change directories directly because process commands run as shell input.