export const onRequest: PagesFunction<Env> = async (context) => {
if (context.env.ENVIRONMENT === "development") {
return await context.next();
} else {
return await cloudflareAccessPlugin(context.request, {
domain: "",
aud: "",
}, );
}
}
export const onRequest: PagesFunction<Env> = async (context) => {
if (context.env.ENVIRONMENT === "development") {
return await context.next();
} else {
return await cloudflareAccessPlugin(context.request, {
domain: "",
aud: "",
}, );
}
}