Hey @outsideurimagination - that create-cloudflare usage does actually create a Workers app, it's ju

Hey @outsideurimagination - that create-cloudflare usage does actually create a Workers app, it's just that the npm "start" script has not been updated to Workers (it incorrectly still mentions Pages).
But you will not that the "deploy" and "preview" scripts do actually result in workers:

    "build": "remix vite:build && wrangler pages functions build --outdir build/worker",
    "deploy": "npm run build && wrangler deploy",
    "preview": "npm run build && wrangler dev",


It is slightly confusing because it is indeed still using the Cloudflare Pages Remix adaptor (for the moment) which generates a Pages Function output, which then needs to be converted to a Worker via the call to wrangler pages functions build.

I hope to have a better template out soon
Was this page helpful?