what should I use to deploy the website giving the database
- User
what should I use to deploy the website giving the database
- Assistant
Exploring the project stack and database setup so we can recommend deployment options that fit your app.
[tool: glob_file_search — Tool use: glob_file_search • Searched codebase "" • 6 results in 1 directory]
[tool: glob_file_search — Tool use: glob_file_search]
[tool: read_file_v2 — Tool use: read_file_v2 • Read file: d:\PaperBites\services\api\src\db.ts]
[tool: read_file_v2 — Tool use: read_file_v2]
[tool: read_file_v2 — Tool use: read_file_v2 • Read file: d:\PaperBites\package.json]
[tool: read_file_v2 — Tool use: read_file_v2]
[tool: read_file_v2 — Tool use: read_file_v2 • Read file: d:\PaperBites\apps\web\package.json]
[tool: read_file_v2 — Tool use: read_file_v2]
[tool: read_file_v2 — Tool use: read_file_v2 • Read file: d:\PaperBites\services\api\package.json]
[tool: read_file_v2 — Tool use: read_file_v2]
Here’s a concise picture that matches your repo: Next.js 15 in
apps/web, a Fastify API inservices/apithat talks to PostgreSQL viaDATABASE_URL(pg), plus ingest and ai services.Database
Use managed PostgreSQL and point both API and any other services at the same connection string:
- Neon — serverless Postgres, good with serverless/edge-style frontends and variable API traffic.
- Supabase — Postgres + extras (auth, storage) if you want that later.
- Railway / Render — simple Postgres + app hosting in one place.
- AWS RDS / Google Cloud SQL / Azure — if you’re already on a cloud account and want full control.
Any of these work as long as you set
DATABASE_URL(and run migrations/seed however you already do locally).Website + API (typical split)
- Frontend: Vercel for
apps/webis the usual choice for Next.js (buildapps/web, set env vars for public API URL if the browser calls it).