Build boundary
dist/admin/ tree and no internal /admin links.Protect Mementropy's standalone Admin Pages project across its custom domain, production hostname, and previews.
Admin is a separate, whole-host protected application.
The public site builds from the repository root and serves mementropy.com.
Admin builds independently from apps/admin/ and serves
admin.mementropy.com. The public build contains no Admin pages.
Cloudflare Pages exposes three classes of Admin hostname, and each requires an Access application:
| Access application | Destination | Purpose |
|---|---|---|
admin |
admin.mementropy.com |
Canonical Admin URL |
mementropy-admin production |
mementropy-admin.pages.dev |
Production Pages hostname |
mementropy-admin - Cloudflare Pages |
*.mementropy-admin.pages.dev |
Hash and branch previews |
The separate mementropy - Cloudflare Pages application belongs to the public
site’s Pages project. It is not a duplicate Admin application.
Before adding private material, confirm all of the following:
apps/admin/src/content/docs/, never under the
public application’s src/content/docs/ tree.apps/admin/public/. Root-relative links
such as /attachments/example.pdf remain on the protected Admin host.robots.txt with
Disallow: /, and applies no-index/no-store headers to /*.admin.admin.mementropy.com with no path restriction.mementropy-admin - Cloudflare Pages for
*.mementropy-admin.pages.dev.Cloudflare’s preview switch does not protect mementropy-admin.pages.dev.
Use Cloudflare’s documented Pages procedure to give the production hostname
its own application:
* from the Subdomain field so the destination becomes exactly
mementropy-admin.pages.dev.mementropy-admin production and save.The Admin setup intentionally has three Access applications. The production Pages hostname and wildcard previews cannot be represented by the same auto-managed Pages destination.
Use a logged-out private browser window:
https://admin.mementropy.com/ shows the Cloudflare Access sign-in page.https://mementropy-admin.pages.dev/ shows the Access sign-in page.*.mementropy-admin.pages.dev shows the Access sign-in page.Then sign in with an approved account and verify:
/, /recipes/, and /planning/ load on the custom domain.pages.dev hostname loads the same Admin application.https://mementropy.com/, /academy/, /blog/, /whitepapers/, and
/docs/ remain public.https://mementropy.com/admin/... URLs redirect to the equivalent
route on admin.mementropy.com.Build boundary
dist/admin/ tree and no internal /admin links.Identity boundary