Open Next.js adapter for Netlify
The Next.js Runtime package handles the build process and creates the runtime environment for Next.js sites on Netlify. It is automatically used during builds, so manual installation is usually unnecessary. Next.js is natively supported on Netlify, and the repository includes the necessary packages for this support. Prerequisites for using Next.js on Netlify include having Next.js 13.5 or later, Node.js 18 or later, and the latest version of the Netlify CLI.
To manually install the Next.js Runtime for Netlify, you can choose between two methods:
From the UI (Recommended):
From npm:
[build]
publish = "out"
command = "npm run build"
functions = "out/functions"
Next.js Runtime simplifies the build process and provides the necessary runtime environment for Next.js sites on Netlify. It offers automation, native support, and easy manual installation options for users. Prerequisites and version-specific details should be considered when installing or upgrading the Next.js Runtime.