featurebugfixinfrastructure

Changelog — February 23, 2026

Configurable auth cookie domain for Coolify preview deployments, fixes for invalid AUTH_BASE_URL during Docker build, and new conductor/worktree tooling for workspace setup.

✨ New Features

  • Configurable Auth Cookie Domain — Added AUTH_COOKIE_DOMAIN environment variable so preview URLs on Coolify can scope session cookies to their own FQDN, instead of being hardcoded to .e-do.studio. This unblocks authentication on ephemeral preview deployments without affecting production. #PR-232

🐛 Bug Fixes

  • Force-dynamic on Invite Page — Added export const dynamic = 'force-dynamic' to the invite page to prevent Next.js from pre-rendering it at Docker build time, where $COOLIFY_FQDN is not yet substituted and causes AUTH_BASE_URL=https:// (empty hostname), crashing betterAuth during SSG. #PR-232

  • Invalid AUTH_BASE_URL Handling — Added URL validation with a localhost fallback in betterAuth initialisation. When AUTH_BASE_URL resolves to an empty hostname (e.g. during Docker builds without the COOLIFY_FQDN env var), the server no longer crashes. Also removed a duplicate dynamic export. #PR-232

📦 Dependencies & Infrastructure

  • Conductor & Worktree Setup — Added conductor.json and scripts/worktree.sh to standardise workspace bootstrapping across contributors. Updated .gitignore and package.json accordingly. A follow-up commit added a pnpm build step to the conductor setup so worker dist/ files are compiled as part of the automated environment setup.

By Théo Daguier