Shados
Shados
CDCloudflare Developers
Created by Shados on 9/17/2024 in #pages-help
Exceptions not being logged
Ok, searching through this discord and doing more tests, it looks like I had some misunderstanding of how this works. Remix was handling the exception (I thought i was throwing it outside of the Remix context, I was wrong), and returning a 500 which is not an "exception" in Cloudflare. If I use the Remix global server error handler in entry.server.tsx and manually logs an exception there, it shows up (as a log). There's no real way to log an actual exception since Remix handles all of them. One caveat I haven't found a good solution for, is if there's an exception from the getLoadContext callback. That one doesn't get handled by the server handler, but still ends in a 500. So it seems you REALLY want a try/catch around your getLoadContext to get any kind of error reporting from there.
2 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
(just tested it on my side app)
12 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
and use the api if you use master or something to change it.
12 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
just pass in the branch name via the github action, if its main, it goes to prod, if its anything else, preview.
12 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
at least I can confirm that if you use a main branch convention, this just works without configuration
12 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
I love cloudflare pages, but damn the dev tooling can be rough sometimes*
12 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
Looks like by default it will use main for prod and everything else for preview, and you can change it with the API https://community.cloudflare.com/t/missing-builds-deploy-settings-page/416091/2 Not ideal though.
12 replies
CDCloudflare Developers
Created by Rich on 9/26/2023 in #pages-discussions
GitHub - cloudflare/pages-action
So looking at my projects, if it was once connected to a github repo, you should still have the build & deployments options and you can configure it there (you can pass whatever branch you want from the github action, you can even "lie" and it will still work). If it was deployed directly from the get go, the options don't show up o.O Wonder if thats a bug.
12 replies