Cloudflare pages access plugin for local
When running with wrangler dev for my functions, the cloudflareAccessPlugin stops the redirect back to the local wrangler server from working correctly. Is there a way to fix that redirect (it sends me back to https://127.0.0.1 eating the port and screwing up the protocol)? If not, what is the magical incantation to conditionally exclude that cloudflareAccessPlugin?
The docs have something like this:
I tried turning it to something like this (and a few other variations), but it spits out the error about returning a response (no context.next?) when hitting the not local development pathway.
Disclaimer: I don't speak javascript or typescript well
![No description](https://cdn.answeroverflow.com/1205365964506538034/image.png)
0 Replies