Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be hosted on cloudflare? Using either next-on-pages or @opennext/cloudflare #34

Closed
clmnin opened this issue Jan 15, 2025 · 3 comments

Comments

@clmnin
Copy link

clmnin commented Jan 15, 2025

I have a next js 14 app hosted on cloudflare using next-on-pages. I wanted my /blog to be managed by wordpress. And so, I am exploring next-wp.

Since my app depends on the cloudflare infra (DO, workers, etc) I can't migrate away from cloudflare.

Since cloudflare's next js does not support ISR, can I still use next-wp?

If you use Incremental Static Regeneration (ISR)14, @cloudflare/next-on-pages will use static fallback files that are generated by the build process.

Supported next-js features

  1. next-on-pages - https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/supported-features/
  2. @opennext/cloudflare - https://opennext.js.org/cloudflare#supported-nextjs-features
@youngbloodcyb
Copy link
Contributor

I don't have as much experience hosting Next apps on CF, but I assume you'd still be able to take advantage of all the static benefits just without ISR. When you create a post you may just have to create a new build on the cloudflare side.

There's nothing specific to next-wp other than ISR that is dependent on Vercel infrastructure. You should be able to still build all static pages and host on cloudflare pages

@youngbloodcyb
Copy link
Contributor

This guide can help:

https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-static-nextjs-site/

Again, no ISR, but it will still allow you to generate the static pages and host on CF

@brijr
Copy link
Collaborator

brijr commented Jan 29, 2025

yes to integrate into your existing codebase just bring over the wordpress.ts and wordpress.d.ts files and then you can start putting the data wherever you would like (copy the components as well if you want).

https://github.com/9d8dev/next-wp/tree/main/lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants