Custom Domains
pnpm run update -- --domain # API Workerpnpm run update -- --admin-domain # Admin Worker--domain configures the API Worker’s domain. Afterwards, review the Better Auth URL, since sessions depend on the authentication origin:
pnpm run update -- --auth--admin-domain configures the Admin Worker’s domain and refreshes the admin URL configuration.
Only one configuration flag can be given per run.
If you also change a Worker’s *.workers.dev name, use pnpm run rename-worker; see the CLI reference.
Remember to add any new origin of your website to CORS_ORIGINS: see Authentication and CORS.