Hi, is authentication available for
Hi, is authentication available for single paths like "/admin"? Looking at Cloudflare Access Pages Plugin it seems to be per domain. https://developers.cloudflare.com/pages/functions/plugins/cloudflare-access/
1 Reply
Aha, think i'm getting this now.
functions/_middleware.ts
is where it's supposed to run. So skimming thorugh https://developers.cloudflare.com/pages/functions/middleware/ it seems I could just put it under functions/admin/_middleware.ts
to have it on that route only.Cloudflare Docs
Middleware · Cloudflare Pages docs
Middleware is reusable logic that can be run before your onRequest function. Middlewares are typically utility functions. Error handling, user …