Skip to content

Fix Notion public-domain routing for proxied sites#54

Open
Azilone wants to merge 1 commit into
draphy:v1from
Azilone:fix/notion-public-domain-routing
Open

Fix Notion public-domain routing for proxied sites#54
Azilone wants to merge 1 commit into
draphy:v1from
Azilone:fix/notion-public-domain-routing

Conversation

@Azilone
Copy link
Copy Markdown

@Azilone Azilone commented May 26, 2026

Summary

  • Patch Notion JavaScript bundles under nested /_assets paths, including experimental bundles.
  • Add a Nooxy cache-busting query parameter to script URLs so browsers fetch patched proxy responses instead of reusing immutable Notion assets.
  • Remove Notion public-domain interstitial markers from public page data responses.
  • Drop stale encoding/length validators after response bodies are rewritten.

Why

Recent Notion builds can route public custom-domain pages through getPublicPageDataForDomain or return requireInterstitial, which can make proxied pages show Notion's “page not found” or “continue to external site” screens. The proxy needs to force Notion's client back through the canonical page URL and avoid serving stale transformed assets.

Validation

  • pnpm type:check
  • pnpm biome:check
  • pnpm build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant