TOKEN_SECRET matches in both Next.js and Hocuspocus.AUTH_URL matches the site URL and AUTH_SECRET is set and persistent.DATABASE_URL (or POSTGRES_URL / POSTGRES_DIRECT_URL)./prisma volume is mounted (Docker) to persist writes.npm run db:push.NEXT_PUBLIC_HOCUSPOCUS_URL is accessible from the browser.wss:// for the Hocuspocus URL.1234), and enable WebSocket upgrade in proxies.OPENAI_API_KEY, OPENROUTER_API_KEY, OLLAMA_HOST.http://localhost:11434).BROWSERLESS_URL or BROWSERLESS_TOKEN./prisma.AUTH_URL must match the public URL; mismatches break login callbacks.DB=postgres and a valid DATABASE_URL.PORT and update the -p host:container mapping consistently.AUTH_URL to your Vercel domain and AUTH_SECRET.NEXT_PUBLIC_HOCUSPOCUS_URL to a reachable wss:// endpoint.PORT (e.g., PORT=3001) and update Docker/Compose mappings, or free the port.npm run dev (terminal output shows route and server errors).docker logs openchat to inspect runtime errors.