TaskFlow runs on free tiers only:
| Part | Platform | Plan | URL shape |
|---|---|---|---|
| Next.js web app | Vercel Hobby | $0 | https://<web-project>.vercel.app |
| Express API | Vercel serverless | $0 | https://<api-project>.vercel.app |
| Postgres | Neon Free | $0 | Managed PostgreSQL |
Both Vercel projects deploy automatically from the same GitHub repository. Pushing to main deploys production; pushing another branch creates a preview.
Render is not used: its free web-service signup currently asks for card verification, which conflicts with the no-card requirement.
- Neon free projects pause after inactivity and wake on the next connection; the first request can be slower.
- Vercel Hobby has fair-use limits and is not for commercial traffic.
- Uploaded attachments are not durable in serverless mode. The local in-memory demo supports attachments; the Postgres deployment returns
501for that endpoint until object storage is added. - Rate limits are per serverless instance. They stop bursts and basic brute force, not a distributed fleet-wide attack. See architecture decisions.
-
Sign in at https://console.neon.tech/ and create a project.
-
Keep the default
neondbdatabase and region close to your users. -
In Connection details, copy both:
- the pooled connection string (used as
DATABASE_URL) - the direct connection string (used as
DIRECT_URL)
- the pooled connection string (used as
-
Apply
apps/api/prisma/schema.prismato the database. From the repository root:cd apps/api npx prisma db push npx prisma db seedDIRECT_URLis required by Prisma schema commands. The app uses the pooledDATABASE_URLat runtime.
Never commit either connection string. Only placeholders belong in .env.example.
-
Open https://vercel.com/new and import
Syed-Muhammad-Ali-Raza/task-manager. -
Leave Root Directory at the repository root so npm workspaces can resolve
@taskflow/shared. -
Use Framework Preset Other and Node.js 22. Leave the build, output, and install commands at their defaults; the root
vercel.jsonandvercel-buildscript handle the API. -
Add these Environment Variables for Production, Preview, and Development:
Name Value DATABASE_URLPooled Neon connection string DIRECT_URLDirect Neon connection string JWT_SECRETLong random string (different from development) USE_IN_MEMORYfalseCORS_ORIGINWeb project URL from step 3 FRONTEND_URLWeb project URL from step 3 Leave
CORS_ORIGINandFRONTEND_URLashttp://localhost:3000for the first deploy, then update them after the web project exists. -
Deploy. The root
vercel.jsonrewrites all requests to the Express handler inapps/api/api/index.ts.
Verify:
GET https://<api-project>.vercel.app/health
Expected: {"status":"ok","db":"up"}.
-
Open https://vercel.com/new again and import the same repository.
-
Set Root Directory to
apps/web. Theapps/web/vercel.jsonkeeps Next.js detection scoped to that directory. -
Use the detected Next.js preset and Node.js 22.
-
Add these Environment Variables:
Name Value API_URLhttps://<api-project>.vercel.appNEXT_PUBLIC_API_URLSame API URL NEXT_PUBLIC_APP_URLhttps://<web-project>.vercel.app -
Deploy, then copy the web URL into the API project's
CORS_ORIGINandFRONTEND_URL, and redeploy the API.
/— public marketing page, indexable./login— public sign-in page./robots.txt— blocks/dashboard,/api/, and/invite/./sitemap.xml— only public pages./llms.txt— AI-friendly product summary.- Sign in with
syed.ali@taskflow.dev/demo1234. /dashboard— server-rendered workspace and board data.
Vercel handles CD from GitHub. The repository workflow in .github/workflows/ci.yml checks lint, types, tests, the production dependency audit, and the web build on every push and pull request.
Useful checks locally:
npm run lint
npm run typecheck
npm test
npm run build -w @taskflow/web
npm audit --omit=dev