Skip to content

Conversation

@backspace
Copy link
Contributor

@backspace backspace commented Jan 28, 2026

More requirements have emerged so I’m adapting the implementation of custom domain publishing, which is a workaround until we have full support for dynamic creation of CNAMES and the like.

  1. Instead of hardcoding usernames who can publish to overridden custom domains, anyone with write permissions for a realm can publish it.
  2. PUBLISHED_REALM_DOMAIN_OVERRIDES is an environment variable that lets us add to the hardcoded mapping without requiring a full deployment.
  3. The publish modal UI now is now aware of overrides, which necessitated threading PUBLISHED_REALM_DOMAIN_OVERRIDES through from the realm server’s index.html-serving function. e8c0a21ef0e0f5101a0d9e590435203ca7bf96af 2026-01-29 14-01-35
  4. Claiming and overriding the custom subdomain when publishing is no longer needed.

@backspace backspace self-assigned this Jan 28, 2026
@backspace backspace added the enhancement New feature or request label Jan 28, 2026
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 42m 27s ⏱️ - 2m 0s
1 925 tests ±0  1 908 ✅ ±0  17 💤 ±0  0 ❌ ±0 
1 940 runs  ±0  1 923 ✅ ±0  17 💤 ±0  0 ❌ ±0 

Results for commit a522c04. ± Comparison against base commit fc9ea48.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Preview deployments

@backspace backspace changed the title server: Change custom domain override to be permission-based Update custom domain publishing approach Jan 28, 2026
@backspace backspace marked this pull request as ready for review January 28, 2026 23:54
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4be20c6cc3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@backspace backspace marked this pull request as draft January 29, 2026 17:54
@backspace backspace marked this pull request as ready for review January 29, 2026 21:53
@backspace backspace requested a review from a team January 29, 2026 21:54
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 13975e58ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +242 to +243
let overriddenURL = new URL(publishedRealmURL);
overriddenURL.host = overrideDomain;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Parse override host before assigning to URL.host

The override value is fed directly into URL.host, but overrides can come from env JSON and the server-side parser explicitly accepts full URLs (e.g. https://whitepaper.boxel.ai). If the override includes a scheme, overriddenURL.host = overrideDomain produces a malformed URL like https://https/, which then shows a broken URL in the modal and causes publish requests to fail for those overrides. Consider parsing/normalizing the override string to hostname/port (or stripping scheme) before assigning it to host.

Useful? React with 👍 / 👎.

@backspace backspace merged commit b73a6d1 into main Jan 29, 2026
99 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants