News for hackers. Stuff that matters.
Re:Cloudflare Pages is now Generally Available by swyx on Monday April 12, 2021 @11:37AM (#26780588)
what limitation are you running into? did something change recently?
Re:Cloudflare Pages is now Generally Available by cheeaun on Monday April 12, 2021 @12:09PM (#26781063)
I think it's been the same, just recently I need a way to set custom headers for specific paths. Documentation [1] says that I can use * or :placeholder(s?), but there's no examples other than "/*" (which matches everything).

I thought it can do matches like "/folder/*/*.html" but... actually can't. I try look around in the forums, seeing others got confused as well and in the end I gave up :D

As for redirects, I really like :splat [2], but for my use case, I need something can be matched in the middle of the URL string, e.g.: /blog/:splat/whatever. Maybe this is like a weird use-case, or rather I'm thinking of it like glob patterns or regex.

[1] https://docs.netlify.com/routing/headers/ [2] https://docs.netlify.com/routing/redirects/redirect-options/...