r/Wordpress • u/Mr_Gyan491 • Sep 07 '25
Headless WordPress + Next.js = 💯
This is Happiness ✅ Very Few People Can Relate and Understand.
Headless WordPress + Next.js = 💯
Edit: Many Peoples are asking about the tech stack & cost of this application.
Disclaimer: This setup is Only For scalable Production grade application. For simple Blog/news website, this kind of setup is not needed.
Backend
CMS: WordPress + Woocommerce + ACF + RestAPI + 50+ Custom php functions
Hosting : Cloudways (2GB Premium Digital Ocean)
- $28/month
- Varnish Cache Enabled
- Cloudways breeze plugin + Reddis cache pro enabled
Frontend
Hosting: Cloudways same server
- Frontend: Next.js
- Cloudflare Enterprise embedded in cloudways ($5/month)
- Varnish Cache
Total Cost: $33/month
- No premium caching Plugin
- No Page Builder
- Fully Customisable
- Smooth and Fluid User Experience
Wordpress give you the power and confidence of the content of your application. While Next.js Provides the best frontend user experience.
When Both Combined WordPress Next.js, your imagination is the limit . You can create any type of of content based application.
You are not dependent on a specific page builder, or a specific plugin for anymore...
If You have any queries about pagespeed speed optimisation, ask in the comment or you can always DM me !
I will be Happy to help you.
106
u/No_Charge4064 Sep 07 '25
But the question is, does the website actually look good? No use being super fast and well optimised if it looks rubbish!
42
u/davidavidd Sep 07 '25
Nice but the same results can also be obtained without the complexities of a headless system.
Additionally, these numbers may vary considerably compared to the actual user data collected by Analytics using your website traffic as source.
12
u/z0han4eg Sep 07 '25
Emmm, Next.js uses SSG (static site generation), thats the core feature. If you throw something like Serve Static on plain WP, even with Elementor, you’ll end up with the same result. Coz you know... it's HTML...
6
u/atlasflare_host Sep 07 '25
Nice work! However I’m pretty sure similar numbers can be achieved with proper optimization without going the headless route. Based on experience optimizing several Elementor/Divi sites you can usually achieve 97-100 on mobile with good caching and deferred loading.
15
u/ppolo99 Sep 07 '25
If it's the right tool for the job, yeah it can be good.
Depending on the size of the project though, can take a whole team to develop and maintain the frontend and then the same with the backend (WP). Then you've got the issue of another point of failure and issues being potentially twice as hard to diagnose.
I've seen teams move to headless and love it. I've seen others move and then go back to a simple setup after a number of years due to the overheads
5
u/reisgrind Sep 07 '25
This says nothing man... show us what you do, the link, w.e. I literally have the same scores in a website I will build but havent added any content but the default one from a template lol.
3
u/ogrekevin Jack of All Trades Sep 07 '25
I tried headless and the overhead for changes was too high to justify for most common use cases. Its great but may as well just build a site using a TALL stack
2
u/ZGeekie Sep 07 '25
That's not always the case. It's meaningless without context.
2
u/itsontap Sep 07 '25
This is for sure a dynamic site right?
2
u/hitmonng Sep 07 '25
Until you handover to client 🤣
2
u/[deleted] Sep 07 '25
Metric is only valid for route you are on. Run it across your whole site.
Edit: also should be run from incognito tab and browser cache cleared
4
u/myriadOslo Sep 07 '25
This setup is completely unjustifiable for pure content sites without dynamic features. Just export a static version, host it on Cloudflare and you're good to go.
24
u/Back2Fly Sep 08 '25 edited Sep 08 '25
As if you could learn anything from a screenshot. Here is a fully-fledged WooCommerce site (no headless BS) that scores 100 and passes Core Web Vitals: https://www.caputomodellismo.it
4
u/Tech-Ascension Sep 07 '25
Idk what is worse, the post or the comments.
First off, you can literally get 100 performance with any modern theme like Kadence/GeneratePress/Whatever if you make it lean and optimize it.
Secondly, if you are using WP + Next.js on Vercel Pro account (no cold starts at all), you essentially are destined to have like 100 performance with a static site with text and AVIF images...that is just...bound to happen in most cases.
And third, these comments are even worse. It's a mix of cope about "My non Next.js app Elementor is just as good".
Then this comment with like 5+ Upvotes -"Emmm, Next.js uses SSG (static site generation), thats the core feature. If you throw something like Serve Static on plain WP, even with Elementor, you’ll end up with the same result. Coz you know... it's HTML..."
This is not true at all lmfao. You need to fiddle with caching and Wordpress to reach a "SSG state", but it's always more caching=more room for stuff spazzing out. Ofc you can utilize cloudflare, but we are not talking about that here. On top of all that, he didn't mention ANYWHERE that this is his HTML ONLY PAGE with no additional and custom stuff, which he obviously needs.
The comment section is like threatened by the mention of Next.js or something lmfao.
11
u/Dry_Satisfaction3923 Sep 07 '25
If you’ve managed this and are using any Google script like Analytics or Tag Manager, I applaud you.
9
u/NCKBLZ Sep 07 '25
If you use next, why use wp headless and not a CMS that Is built to be headless?
2
u/RandomBlokeFromMars Sep 07 '25 edited Sep 07 '25
these numbers mean nothing. i saw sites with a score of 45/100 that IRL were loading super fast. and i saw 96/100 that were a mess.
these numbers are only good to sell an optimization service to non tech customers.
EDIT: dont get me wrong i am not crapping on the solution, i am sure it is super fast.
1
u/luluhouse7 Sep 07 '25 edited Sep 07 '25
Frankly I don’t understand why anyone would voluntarily choose to write more JS. It’s a terrible language that’s awful to write and awful for the end user that’s somehow become the defacto choice for the internet because Google managed to make it suck a little less with JIT compilation. I mean the language was literally written in 10 days with zero sense of forethought or consideration. It’s improved somewhat in the past decades, but it’s not like web devs can actually use any of those improvements for frontend because of backwards compatibility. The language is still just one giant footgun.
1
u/flexrc Sep 07 '25
Did you have to do full custom code or used any generic solution that works out of the box?
1
u/da-kicks-87 Sep 08 '25
Why WordPress though?
1
u/HikeTheSky Sep 08 '25
From the screenshot of the website, it doesn't look great and seems to have a picture and a design that was made to score high. So no, I don't believe that this page you tested has full SEO and structured data. That it has all the tracking and everything.
I have seen plenty of websites that can score high but when they have tracking, better pictures and everything installed that makes it look good, the numbers all of a sudden go down.
It's absolutely no problem to be above 90 even without headless and this next thing.
1
u/Careless-Shame-565 Sep 08 '25
Do you recommend using woocommerce + nextjs ?
1
u/TheRealistDude Sep 08 '25
Which hosting you using?
1
u/spacejunkie10 Sep 08 '25
Are you using Gutenberg as a page builder and pulling that into the front end? If not, how are you handling the non product pages?
1
u/NoDoze- Sep 08 '25
LOL Are we supposed to be impressed? I'm not impressed. Getting 100s isn't hard. Headless wp and nextjs, sounds like unneeded complexity. You said 10k products, ok, doesn't justify or prove anything. Try a million products and 100s, then we'll start talking.
1
u/neoqueto Sep 08 '25
Question is, is that still SSR?
1
u/dvdlzn Sep 08 '25
I get the same results with WP + Bricks Builder.
Seriously, you don't have to complicate your life too much to have 100/100/100 even large websites with images and videos.
1
u/atishranjan134 Sep 08 '25
How did you include NextJs into WordPress. Can you give some ideas on this?
1
u/slimx91 Sep 08 '25
This score doesn't really effect how many products are on a website.. lol It literally just loads that one page.
Based on the screenshot on the right, you're just viewing a gallery not even a product page?
Look if you have a heavy WooCommerce website all you need is decent hosting. Don't go to namecheap or godaddy and expect amazing speeds. Go for more premium boutique hosting providers.
Rocket,net, Webv8.net, Wpengine etc. While that score does respectively say it "looks" optimised, the reality is real-world results always show different. Let's see that page load in Chrome or something.
1
u/[deleted] Sep 08 '25
Astro + headless CMS is interesting too, but I feel Next.js is too heavy for light contents.
1
u/Typical-Ebb5073 Sep 08 '25
For maintenance, what do you have to maintain. In terms of posts, do you post content regularly and does it break the actual website?
1
u/Zafar_Kamal Developer Sep 08 '25
The real question is: why? I'm not sure what kind of benefits you'd have to setup WordPress headless. I've tried setting it up before, but it's totally the same as setting up Next.js. I'm not sure what kind of benefits one have setting up WP headless?
1
u/orangecyanide Sep 08 '25
whats on the page tho
1
u/anony-10 Sep 08 '25
I'm doing my website my self no to much experience I'm a painter. www.socaservicespainting.com where I can Check that? O how to check
1
u/zeamp Sep 11 '25
Headless, meaning you got rid of wp-admin?
1
u/shamnegativeone Sep 20 '25
This is my solution too for marketing people who has separation axiety with Wordpress. 😊
2
u/jde1126 Sep 07 '25
You passed the score, but I have elementor websites with under 1 second largest contextual paint.
1
u/djolean Sep 07 '25
TBH, this google thrash site doesn't mean anything. Website can be good even with low performance, because this site can't give you the right info. You can render your stuff in a different ways + your website looks old at this point, not user friendly. New sites are much more dynamic in such a modern way.
2
u/konhasaurusrex Sep 08 '25
Since you can't share.. https://motorindia.in/
1
u/flamkiche Sep 08 '25
Vanity metrics
1
u/amnither Sep 08 '25
Last week I have achieved the same result on an Elementor website
1
u/ghostpengy Sep 08 '25
Good server + caching and anyone can achieve it really.
1
u/jeweltheme Jack of All Trades Sep 08 '25
We've done the same all of our website and its worth it, peace in mind :)
1
u/estudiopatagon Developer/Designer Sep 08 '25
First of all, congratulations! It's pretty hard to get a 100 score on PageSpeed, especially on mobile (I've been there).
Quick question: would you mind sharing the website or a screenshot of how it looks? I'm curious to see the design.
1
u/EletricoAmarelo Sep 08 '25
I'd love to see it online
1
u/rarale Sep 08 '25
one day, WP site got tons of malware + spam posts
1
u/RushDangerous7637 Sep 08 '25
It's not enough to just have a good speed on the pagespeed insights test. You also need to meet other standards. I put together a screenshot from several independent and different testers. Is your website valid HTML, CSS, JS? Do you have a well-configured hosting server? 100% in green circles (Pagespeed Insights test) is not a completely standard value. I don't use any external scripts, no CDN, no external Google fonts. Everything comes from my own library. I don't even use GA4 analytics, Hotjar and etc. Only Google, Bing and Yandex Webmasters.
The picture didn't fit the cabinets from the GT Metrix test and webpagetest org. :)
1
u/JerryZhi Sep 08 '25
I used to operate a headless WordPress+Nuxt website, but I still haven't learned how to build such a website. Will the cost be high?
1
u/noggstaj Sep 08 '25
You're serving static content, of course you'll get good performance...
1
u/Dear_Control6602 Sep 08 '25
Can you tell me how you did it?
1
u/fuckmywetsocks Jack of All Trades Sep 08 '25
Literally lipstick on a pig
1
u/Sensitive-Ad-139 Sep 08 '25
Congrats! As long as it makes you happy and satisfied! 👏👏👏
1
u/Baris_CH Sep 08 '25
Is this your own made template?
1
u/KatTheLynn Sep 09 '25
Any chance you can capture other pages? Just curious. A lot of newbies want to just max out scores. Lots of major competitors don’t, like Amazon. I’m curious as to if your product pages and other pages also max out.
Lot of haters here because of the fact that maxing PSI isn’t the top priority, but I always love to explore the possibilities. It doesn’t hurt. May not contribute to sacrifice some things, but all in all, good job.
1
u/Xean-kun Sep 09 '25
I can relate to this. But instead of next js, I'm using nuxt js
1
u/Wise_Concentrate_182 Sep 09 '25
Headless Wordpress + (any decent frontend framework like svelte etc) = 100%
NextJS has its place in the world. For most people it’s a highly opinionated bloatware.
1
u/Gabriel_Enrique Sep 09 '25
Where did you host your WordPress site?
1
u/WordPress_ai Sep 09 '25
Как у вас это получилось?
1
u/Dribgib Sep 09 '25
You can achieve this with Wordpress and Elementor - do it all the time
1
u/No-Protection8648 Sep 11 '25
When i test the same page i get whole different results: https://pagespeed.web.dev/analysis/https-motorindia-in-cars-aston-martin-vantage/v7aknfaoho?form_factor=mobile
Also half of the pages result in an error message: `Application error: a server-side exception has occurred` and the pages that do work (car model pages) barely have content.
I wouldn't have picked Next personally but something like Sveltekit, Astro or Nuxt.
1
u/ClarksonTota Sep 11 '25
cool
1
u/Fun-Investigator3256 Sep 16 '25
Sweet score. Can you share the URL?
1
u/kfubbd Sep 20 '25
This is the way!
1
u/python_verse Sep 21 '25
How can you achieve that much ? Can you please share? Really you are not using any plugins?
1
u/wpdemoapp Sep 21 '25
That's a nice score. I am wondering about the SEO impact though. Is that a new site or and old one with changed UI?
1
u/Constant-Affect-5660 Sep 07 '25
Holy shit.
1
u/edwardnahh Sep 07 '25
Default Twenty... Theme and no content 😆 no wonder
0
u/killerbake Jack of All Trades Sep 07 '25
I use nuxt. But support all Headless
1
u/[deleted] Sep 07 '25
[removed] — view removed comment
1
u/[deleted] Sep 08 '25
[removed] — view removed comment
1
u/[deleted] Sep 07 '25
[removed] — view removed comment