FRMWRK
Next.js Boilerplate
Build tools with AI

Deployment

Deploy to Coolify with Nixpacks. See docs/coolify.md for the full step-by-step guide.

Build settings

Build commandnpm run build
Start commandnpm run start
Port3000
Build packNixpacks (auto-detected)

Health check

ProtocolHTTP (not HTTPS — SSL terminates at the proxy)
Port3000
Path/api/health
Expected status200
Interval30s (recommended)

Example response: {"status":"ok","db":"up","version":"1.0.0"}

Environment variables

ModuleRequired vars
AlwaysAPP_VERSION (optional, defaults to package.json version)
DatabaseDATABASE_URL=file:./data/app.db
AuthAUTH_SECRET, BETTER_AUTH_URL, EMAIL_* vars
AI (Anthropic)AI_PROVIDER=anthropic, ANTHROPIC_API_KEY
AI (OpenAI)AI_PROVIDER=openai, OPENAI_API_KEY

Full list in .env.example in the repository root.

Persistent volume (SQLite — Database module only)

Without a persistent volume, the SQLite database is lost on every deploy.
Source path (host)/data/coolify/volumes/<app-name>/data
Destination path (container)/app/data

For production backups consider Litestream (continuous replication to S3 / R2 / B2).

After the first deploy

1

Check the health endpoint: GET https://your-app.com/api/health

2

Verify the persistent volume is mounted (database tools only)

3

Test the login flow if auth is active

4

Set up a backup schedule if your database data is critical