Updated 23 November 2026
You can find the fix for the most common problems here, each under the question you would ask.
The install fails or the build shows a version error
Check your Node version with node --version. Templates need Node.js 24 or newer. Node 26 LTS is recommended. Install a newer version, then run npm install again.
Port 3000 is already in use
The dev server and npm start both use port 3000 by default. Another program is using it. Stop that program, or use another port:
npm run dev -- -p 4000for the dev server.npm start -- -p 4000for a feature template.PORT=4000 npm startdoes the same.
My form says it cannot send
No form endpoint is set. Set forms: { endpoint } in content/owner.ts to your WebForms.to address, https://send.webforms.to/<key>. A template with a database does not need one. See Forms.
If the endpoint is set and the form still fails, check that the endpoint answers with { "ok": true }. Give your AI agent prompts/06-connect-forms-webforms.md so components/form.tsx matches the WebForms.to request and response.
Emails are not arriving
- Check
MAIL_PROVIDERin.env. Withconsole, emails are printed in the terminal and never sent. - With
smtp, check thatSMTP_URLmatches your provider, for examplesmtp://user:pass@mail.example.com:587. - With
resend, checkRESEND_API_KEY. - Check that
MAIL_FROMis an address your provider allows. - Restart the site after you change
.env.
See Email.
I cannot sign in as the first admin
- Check that
ADMIN_EMAILandADMIN_PASSWORDare set in.env. The password needs at least 10 characters. - Restart the site.
- Go to
/admin/sign-inand sign in with those two values. The admin account does not exist until this first sign-in, and the sign-in creates it. - Change the password.
Visitors sign up at /account/sign-up and sign in at /account/sign-in.
The database URL is rejected
Use one of these forms in DATABASE_URL:
file:./data/site.dbfor SQLitelibsql://…withDATABASE_TOKENfor Tursopostgres://user:password@host:5432/namefor PostgreSQL
Run npm run db:migrate after you change it. See Accounts and database.
Pages show 404 on Cloudflare Workers
The settings in wrangler.jsonc are wrong or the build is out of date.
- Set
assets.directoryto./out. - Set
assets.html_handlingtoauto-trailing-slash, so folder pages such asabout/index.htmlopen at/about/. - Run
SITE_URL=https://your-domain.com npm run buildagain. - Run
npx wrangler deploy.
See Deploy a static site.
The sitemap lists example.com addresses
The sitemap uses SITE_URL for its addresses. Without it, the addresses point at https://example.com. Build again with SITE_URL=https://your-domain.com npm run build. This applies to static sites too.
The site does not start after I change db/schema.ts
Run npm run db:generate, then npm run db:migrate.
