Roy Sheppard
CDCloudflare Developers
•Created by Roy Sheppard on 3/26/2025 in #pages-help
Payload CMS on Cloudflare Workers/Pages
Is it possible to host a NextJS app with Payload CMS? It seems to have several node dependencies meaning I can't use it. Is there anyway?
3 replies
CDCloudflare Developers
•Created by Roy Sheppard on 3/26/2025 in #workers-help
sh: cloudflare: command not found
Following the NextJS framework guide for workers.
Installed "@opennextjs/cloudflare": "^0.6.0"
Added these scripts to my package.json:
"build:worker": "cloudflare",
"dev:worker": "wrangler dev --port 8771",
"preview:worker": "pnpm build:worker && pnpm dev:worker",
"deploy:worker": "pnpm build:worker && wrangler deploy"
I use pnpm instead of npm so made that change but when I run pnpm preview:worker I get the following message:
[email protected] preview:worker /Users/roy/Documents/Code/project
pnpm build:worker && pnpm dev:worker[email protected] build:worker /Users/roy/Documents/Code/project
cloudflaresh: cloudflare: command not found What am I missing. I tried installing cloudflare globally but no help
1 replies