Trying to host a NextJS project on Cloudflare. Error: Output directory "out" not found.
Hi all,
I've managed to host some non-NextJS projects fine, but this one is getting me a little stuck. I'm sure it's an easy fix but I can't quite seem to figure it out :/
https://github.com/callum-laing/shopping-site/tree/main/app
hopefully this is enough info?
3 Replies
Build command
"npx @cloudflare/next-on-pages@1" Build directory ".vercel/output/static"
"npx @cloudflare/next-on-pages@1" Build directory ".vercel/output/static"
The docs here very clear:https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/
Cloudflare Docs
Full-stack deployment · Cloudflare Pages docs
Deploy a full-stack Next.js site (recommended).
Ah, yeah I had it on static host.. however I now have this issue, I've added the flags to where it has asked me.