Hi,
I’m deploying a next.js site that should be fully static, I’m not using any SSR, Netlify plugins, redirects etc and have a completely stock next config file however each page view is triggering Next.JS Server Handler and sometimes several functions per page. I did not notice behaviour before runtime v5 and im trying to understand what is actually calling the functions.
Thanks
@njs2024 I don’t use Next.js or work for Netlify, but from what I’ve seen in my travels, I believe that more recent versions of Next.js don’t produce a “static site” unless you’re explicitly doing an “export”.
See posts like:
So it may seem it’s a “static site”, but how it has been implemented to ensure various Next.js functionality has meant it’s no longer actually one.
Thanks for the response, this does make sense as to why I am now seeing functions activity, hopefully Netlify can work on the amount of functions being used per user or perhaps recommend ways of reducing them? Unfortunately, next export would only be a short term fix as I plan to use API routes down the line.