Erwin
12/15/2021, 8:08 AMmarkdessain
12/15/2021, 10:32 AMGreg Brimble | Cloudflare Pages
12/15/2021, 10:50 AMts
export const onRequest = async (context) => {
return new Response(context.env.NEXT_PUBLIC_NHOST_GRAPHQL_API)
}
https://developers.cloudflare.com/pages/platform/functions#environment-variableSubh
12/15/2021, 10:55 AMErwin
12/15/2021, 10:59 AMGreg Brimble | Cloudflare Pages
12/15/2021, 2:04 PMwrangler@alpha
if anyone's feeling adventurous and wants to try out our new static assets server.
TL;DR:
- much more faithful simulation of how Pages actually serves assets in production, including SPA routing, _headers
and _redirects
support
- better error handling in your scripts (hopefully no more crashing the entire server!)
Let us know how you get on 🙂stonys
12/15/2021, 2:09 PMCannot reconstruct a Request with a used body
, when the POST body is not empty? ThanksGreg Brimble | Cloudflare Pages
12/15/2021, 3:34 PMPatrickJ
12/15/2021, 3:51 PMGreg Brimble | Cloudflare Pages
12/15/2021, 3:53 PMGreg Brimble | Cloudflare Pages
12/15/2021, 3:53 PMPatrickJ
12/15/2021, 4:05 PMJustinNoel
12/15/2021, 4:28 PMGreg Brimble | Cloudflare Pages
12/15/2021, 4:49 PMGreg Brimble | Cloudflare Pages
12/15/2021, 4:51 PMDeleted User
12/15/2021, 7:08 PMpxkq
12/15/2021, 7:40 PMbasic-auth
, but take a look at _middleware: https://developers.cloudflare.com/pages/platform/functions#adding-middleware
You should be able to create a private directory with the auth middleware inside and only the functions of that directory or deeper will have itDeleted User
12/15/2021, 8:27 PMpxkq
12/16/2021, 6:18 PMHardAtWork
12/16/2021, 6:19 PMpxkq
12/16/2021, 6:19 PMHardAtWork
12/16/2021, 6:21 PMpxkq
12/16/2021, 6:23 PMHardAtWork
12/16/2021, 6:26 PMHardAtWork
12/16/2021, 6:27 PMpxkq
12/16/2021, 6:35 PMErwin
12/16/2021, 11:48 PMpxkq
12/17/2021, 12:05 AMErwin
12/17/2021, 2:44 AMCоlе
12/17/2021, 8:50 AM