Oleg Isonen 6ecd460326 fix: Release custom domains after their last project link is removed (#6676)
Removing a custom domain currently leaves Cloudflare routing active.
This change releases the hostname before detaching its last project
connection. Failed Cloudflare cleanup keeps the connection so the user
can retry.

Ref #6674
Depends on webstudio-is/webstudio-saas#679, already deployed to
production.

No database migration is required. Concurrent additions, verification,
and removals of the same hostname remain outside this fix; there is no
shared lock across requests. Existing orphaned production hostnames
require separate approved cleanup.

## Checklist

- [x] Remove the migration, schema additions, SQL tests, and operation
locking.
- [x] Preserve last-connection cleanup, retry behavior, and shared
hostnames.
- [x] Verify regression tests, typecheck, lint, and formatting.
- [x] Review documentation impact: existing removal instructions remain
accurate; no user-facing copy change.
- [x] Push the simplified change and complete CI.
- [ ] Verify with a real custom hostname.

Local verification: 35 domain tests, domain typecheck, repository lint,
formatting, and diff checks passed. Five regression cases fail against
the original implementation. All CI jobs passed, including all ten
browser shards and visual regression. No fixture inputs or outputs
changed. No development or production database migrations were run. Live
hostname verification remains pending.
2026-11-12 14:38:25 +01:00
2026-02-05 10:25:17 +01:00
2026-03-20 21:09:47 +01:00
2023-09-06 21:43:29 +03:00

builder-screenshot

Webstudio is an Open Source Visual Development Platform for developers, designers, and cross-functional teams. You own the data, components, and infrastructure. You can use the hosted version or roll out your own.


Learning Resources

Social Media

License

  • Webstudio core (all functionality in this repository) is free/open-source under AGPL-3.0-or-later.
  • sdk-components-animation package (optional) is proprietary. You must accept the Webstudio, Inc. EULA located in sdk-components-animation/LICENSE before using it.
Languages
TypeScript 97.9%
PLpgSQL 1.5%
CSS 0.3%
Shell 0.2%
JavaScript 0.1%