clearUrl: "notion-domain"
Noopy는 Notion 공개 페이지를 커스텀 도메인에서 서비스하기 위한 Cloudflare Worker 기반 라우터입니다.
핵심 목표:
/kr, /test 등)www.kopress.com/<slug>로 접속clearUrl, cleanUrl, slug)은 자동 인식하되 화면에는 숨김flowchart TD
A["User opens <https://www.kopress.com/kr>"] --> B["Cloudflare Worker"]
B --> C{"slug map has 'kr'?"}
C -- Yes --> D["Map to Notion pageId"]
C -- No --> E["Try extracting trailing 32-char pageId"]
E --> F["Forward request to kopress.notion.site"]
D --> F
F --> G["Proxy HTML / assets / api/v3 responses"]
G --> H["Inject runtime script"]
H --> I["Hide Notion topbar + hide control YAML block"]
I --> J["Rewrite internal links to slug URLs"]
J --> K["Render page on www.kopress.com URL"]
flowchart TD
A["Editor creates child page in Notion"] --> B["Add control line at top\\nclearUrl: '/my-page'"]
B --> C["Worker sync reads child pages via Notion API"]
C --> D["Extract key: clearUrl | cleanUrl | slug"]
D --> E["Build runtime slug->pageId map"]
E --> F["Cache map in Worker memory"]
F --> G["Route /my-page to matched pageId"]
H["POST /_ops/sync"] --> C