Closed CodeLPrime closed 1 year ago
Hi there @CodeLPrime,
Thanks for opening this issue.
We should document this better, but you need to use nodejs_compat
mode.
You can enable this in your Cloudflare dashboard by:
Settings
tabFunctions
in the sidebarnodejs_compat
as a flag for both Production and PreviewThe end result should look something like this:
Once that's done, go back to your local project and run:
npm run build && npx wrangler pages deploy dist/
Hopefully eventually they allow this via the CLI, but for now you need to use the Cloudflare Pages dashboard.
Can you give this a try and let me know if it works, @CodeLPrime?
Hello, @sjc5:
Cloudflare Pages deployment (preview + production) works after enabling the nodejs_compat
compatibility flag.
I appreciate the detailed instructions and the screenshot.
Thank you for all that you do.
Cheers,
L
P.S. I am interested in helping out with documentation. Feel free to email me at username @ Gmail.
Awesome, thanks @CodeLPrime!
Regarding docs, that would be great. Very soon I'm going to re-work the docs project to be much easier to both read and contribute to. I'll try to remember to give you a ping when the structure is in a little better place / more long-term. And of course, PRs welcome any time in the meantime :)