3 ms·
Tell me about it. My simple SSG Next.js static site loads much slower than my Jekyll site on GitHub pages. And I can't figure out how to improve its speed or
by paradite 2y ago
Tell me about it.
My simple SSG Next.js static site loads much slower than my Jekyll site on GitHub pages.
And I can't figure out how to improve its speed or disable the "ISG" feature that I believe is to be blamed for the poor performance.
- eropple 2y agoNot defending NextJS, I'm pretty out on it myself, but ISG requires a server to run. It pregenerates static content for defined pages and serves that until revalidating. If you've built a fully static bundle, nothing exists that would handle that incremental/revalidating logic.
- paradite 2y agoI understand that ISG requires a server (Node.js runtime) to run it, that's why I want to disable it for my SSG Next.js static site, but I can't figure out how. I just want static hosting like S3+Cloudfront which is much faster.
- theturtletalks 2y agoYou need to use static export: https://nextjs.org/docs/app/building-your-application/deploying/static-exports https://nextjs.org/docs/app/building-your-application/deploy...
- paradite 2y agoCool, so that's what I was missing all along! Unfortunately looks like I can't use it now since I am using `next-plausible` which does require a Node.js proxy...
- deleted 2y ago[deleted]