Frontend is prepped and ready to deploy.
✓ Installed @sveltejs/adapter-cloudflare
✓ Updated svelte.config.js to use Cloudflare adapter
✓ Tested build (successful)
✓ Created deployment script
✓ Added Cloudflare MCP servers to Claude config
cd frontend
./deploy.shThis will:
- Build the app for Cloudflare Pages
- Deploy to
memory-pool.pages.dev - Give you the live URL
cd frontend
# Build
npm run build
# Deploy
npx wrangler pages deploy .svelte-kit/cloudflare --project-name=memory-poolIf this is your first Cloudflare deployment:
-
Login to Cloudflare:
npx wrangler login
This opens a browser for authentication.
-
Deploy:
./deploy.sh
Your frontend will be live at:
- Production:
https://memory-pool.pages.dev - Custom domain: Set up in Cloudflare dashboard
- Test the live site - Visit the URL
- Note: Backend API calls will fail (expected - no backend yet)
- Set up Workers backend - Connect D1 database and API routes
To use your own domain:
- Go to Cloudflare Dashboard
- Navigate to Pages → memory-pool
- Click "Custom domains"
- Add your domain (e.g.,
memory.ariaverse.com) - Update DNS as instructed
For the frontend to connect to the backend (once deployed):
- Go to Pages → memory-pool → Settings
- Add environment variable:
PUBLIC_API_URL=https://memory-pool-api.your-workers.dev - Redeploy frontend
npx wrangler loginThe project name memory-pool is taken. Either:
- Use a different name:
--project-name=memory-pool-aria - Or delete the existing project in Cloudflare dashboard
# Clean and rebuild
rm -rf .svelte-kit node_modules
npm install
npm run buildOnce frontend is deployed, we'll:
- Create Workers backend (Hono API)
- Set up D1 database (SQLite)
- Connect frontend to backend
- Add full memory-pool features
- Frontend prepped
- Frontend deployed (run
./deploy.sh) - Backend created
- Backend deployed
- Frontend ↔ Backend connected