NullVoxPopuli
CDCloudflare Developers
•Created by NullVoxPopuli on 5/12/2024 in #pages-help
can i set the sha for pages deploys with wrangler?
7 replies
CDCloudflare Developers
•Created by NullVoxPopuli on 5/11/2024 in #pages-help
how do you tell wrangler to do a preview deploy?
I have this code so far:
but it deploys over my production deployment
8 replies
CDCloudflare Developers
•Created by NullVoxPopuli on 5/11/2024 in #pages-help
Why is my function middleware not active?
I created a middleware here: https://github.com/NullVoxPopuli/limber/pull/1733/files
and locally, testing with npx wrangler has the desired behavior.
but when I view my page's latest deploy: https://4186709a.limber-glimmer-tutorial.pages.dev/1-introduction/1-basics
the middleware is not active.
What debugging steps should I try?
61 replies
CDCloudflare Developers
•Created by NullVoxPopuli on 5/8/2024 in #pages-help
I'm incorrectly *not* getting a 404 on some fetch requests. How do I get 404s?
I have code that fetches files with extensions -- and that works great, but when a file is missing, I get the index.html page. I believe this to be wrong behavior. Is there a way to fix, or is this a bug with cloudflare? 😅
28 replies
CDCloudflare Developers
•Created by NullVoxPopuli on 3/17/2023 in #pages-help
How do I specify a sub-route for which I do not want SPA fallback to index.html?
On these docs: https://developers.cloudflare.com/pages/platform/serving-pages/
it says that 404 pages fallback to the index.html with a 200 status.
Is there a file I can upload with my site that tells cloudflare to 404 for certain paths when pages aren't found?
For example, in any sub-route under
/docs/
I want no fallback behavior, and 404s to be real4 replies
CDCloudflare Developers
•Created by NullVoxPopuli on 2/15/2023 in #pages-help
I can't get a simple bash script to run due to PATH being mangled?
If support folks want to look: https://dash.cloudflare.com/c67910a047e1510fec6d0d0cf442934c/pages/view/ember-apply/59801594-0a6d-494c-a8e4-cc57a711a5b8
Here is my log (attached, I guess).
and my script:
The need for this script comes from two assumptions:
- cloudlfare doesn't support pnpm / have it installed by default
- cloudflare brake
/functions/
paths
But now I get errors like:
because of some weird shell behavior.
Why is it running under sh when my script is bash?1 replies