Common problems
| Problem | Fix |
|---|---|
| Database error on first load | Check DATABASE_URL, then run npx prisma db push (and npx prisma generate if the client is stale) |
| Sign-up works but the verification email never arrives | Sign-in requires a verified email. Check your email provider key and that EMAIL_FROM is on a verified domain |
| Stripe webhook returns 400 | Use the signing secret of the endpoint you are testing. Locally, run stripe listen --forward-to localhost:3000/api/stripe/webhook and use the secret it prints |
| Checkout succeeds but the plan stays inactive | The webhook has not arrived. Checkout success never activates a plan; only the webhook does |
| Upload fails in the browser | Add a CORS rule for your app origin on the bucket: methods GET, PUT, HEAD, header content-type, expose ETag |
| Chat returns 401 | Chat needs a signed-in user while auth is installed (AI_REQUIRE_AUTH). Also check AI_GATEWAY_API_KEY and access to the model |
| Chat sends no text with a reasoning model | Raise AI_MAX_OUTPUT_TOKENS. The default 1024 can be spent entirely on thinking |
| No attach button in the chat | Chat attachments need the storage module: tailar add storage, then tailar sync ai. AI_ATTACHMENTS=false also hides it |
| Deleting a chat fails after changing storage provider | Set STORAGE_PROVIDER to the provider that is installed (r2, s3 or gcs) |
| Works locally, fails on deploy | Add every variable to your host and redeploy; set the production URLs |
| The CLI says it needs the lifetime licence | Build your repo at the builder, buy the licence with the account you log in with, then run the command again |
| Lost access to the email you bought with | Contact us from the address on your receipt |
psql
UPDATE "user" SET "emailVerified" = true;