-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
featureLet's update application to work even betterLet's update application to work even better
Description
Summary
To support Scale-to-Zero architecture, the Frontend must be decoupled from the Backend. The Frontend must be served as a static SPA (Single Page Application) from a central point (CDN/Nginx), while the Backend runs in private containers.
Requirements
- Build Process: Update Vite config to generate a completely independent build (assets with absolute paths or relative to root).
- API URL: Frontend must allow dynamic API Endpoint configuration (not hardcoded
localhost:3000) to query the backend on the same domain via/apiproxy. - CORS: Enable CORS on Backend for the frontend domain (if not on the same origin).
- Standalone: Frontend must not rely on being served by the Backend Express server.
Complexity
5/10 (Requires changes to build, deploy pipeline, and Axios config)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureLet's update application to work even betterLet's update application to work even better