Is it possible to enable an access policy on both a pages.dev subdomain project as well as a custom
Is it possible to enable an access policy on both a pages.dev subdomain project as well as a custom domain tied to it?
pages.dev usually break the Custom Domain(unless you just entirely bypass Access, which basically means it does nothing)


$ curl https://1.1.1.1/cdn-cgi/trace
fl=4f603
h=1.1.1.1
ip=111.111.111.111
ts=1746577084.432
visit_scheme=https
uag=curl/8.7.1
colo=SJC
sliver=001-tier4
http=http/2
loc=US
tls=TLSv1.3
sni=off
warp=on
gateway=on
rbi=off
kex=XREALKEYexport default {
async fetch() {
return new Response(`You are hitting ${(
await (await fetch("https://1.1.1.1/cdn-cgi/trace")).text()
).match(/^colo=(.+)/m)[1]} via Quad1.`)
}
} async fetch(request, env, ctx) {
await this.scheduled(request, env, ctx);
return new Response("don");
},
...
async scheduled(event, env, ctx) {
const data = await this.getAllDataInD1(env);
const description = data.map(rank => `${rank.tierName} (${rank.rankScore})`).join('\n');
await editWebhook(description);
},