Replies: 4 comments
-
Did you find a workaround, @bringking? I'm also super interested in being able to schedule cron jobs in a Remix + CF Pages app. |
Beta Was this translation helpful? Give feedback.
-
I think what's your asking is a limitation of Cloudflare Pages in general. If you use Cloudflare Workers directly, then I believe it's just a matter adding an extra code for remix/templates/cloudflare-workers/server.ts Lines 14 to 15 in 1a8a521 While looking around their doc, I found this "Advanced mode" https://developers.cloudflare.com/pages/platform/functions/advanced-mode/ which seems to give you a full control over worker script. This might allow setting up Either way, I think this kind of question might be better asked on cloudflare/wrangler side since people here might not be familiar with this subtle nuance. EDIT: Extra note. It seems sveltekit uses "advanced mode" ( |
Beta Was this translation helpful? Give feedback.
-
I'm also curious about this because the vercel remix integration allows making any route a cron if I remember right. |
Beta Was this translation helpful? Give feedback.
-
im curious to know how to accomplish this but it seems there is no way to do this currently? |
Beta Was this translation helpful? Give feedback.
-
To take full advantage of Cloudflare, workers can export other handlers besides fetch for things like consuming a Queue message, or getting triggered by a Cron. The docs show something like this -
With Remix/Cloudflare, it makes sense to let the Remix build handle
fetch
, but how can we also specify handlers for the other entrypoints? I'm specifically using the Remix Cloudflare Pages runtimeBeta Was this translation helpful? Give feedback.
All reactions