This is a code bundle for Rental GPU Service Prototype. The original project is available at https://www.figma.com/design/rlNEvs055Kwpq7SEC5U0Yg/Rental-GPU-Service-Prototype.
Run npm i to install the dependencies.
Run npm run dev to start the development server.
The production Docker image serves SPA via Nginx and includes:
try_files ... /index.htmlfallback, so browser reload on non-root routes does not return404.- Same-origin reverse proxies:
/api/*->https://api.anthive.ai/*/auth/*->https://auth.swarmind.ai/*
- Cookie domain rewrite on
/auth/*so auth cookie is first-party for frontend host.
You can override API hosts at build time with Vite env vars:
VITE_API_BASE_URL(default:/api)VITE_AUTH_API_BASE_URL(default:/auth)