The Next.js website is served through multiple Azure functions. The basic-nextjs-azure-functions
package contains these functions.
nextjsserver
- The actual Next.js web server, including Incremental Static Regeneration.
serveStaticFile
- A function to serve all static files from the _next/static
path.
Handling of routing is managed through the Azure functions proxy functionality as configured in proxies.json
:
_next/static/*
files are redirected to theserveStaticFile
function- all other files are redirected to the
nextjsserver
function