Deployment options for JSS Next.js apps

Next.js applications can be hosted using various services, depending on the prerendering form and your preference.

Important

Headless server-side rendering using the JSS proxy is neither needed nor compatible with Next.js JSS applications.

Deploying on Vercel

The creators of Next.js, Vercel, offer deployment and hosting solutions optimized for Next.js. They support all Next.js features, including incremental static site (re-)generation, hybrid rendering, and internationalization. Your application can be deployed directly from source control and optimized through Vercel's edge network and serverless functions. Refer to the following resources for more information about deploying to Vercel:

Node.js Server

You can deploy Next.js JSS apps to any hosting provider or environment that supports Node.js. For more information, refer to the following resources:

Static HTML Export

If you want to deploy your Next.js JSS app using a fully static HTML export, you must be aware of the limitations in supported Next.js features when using the next export script. For more information, refer to the following resources:

Important

To use an advanced Sitecore editor with your JSS Next.js application, even if you export the app as static HTML with next export, you must run a Next.js instance accessible to your Sitecore instance.

Triggering Webhooks when publishing content

When statically generating the application or deploying static HTML with the next export script, you must trigger a next build and site deployment to publish new content. Headless Services and Experience Edge for XM can invoke webhooks to facilitate this. You can leverage webhooks with Vercel deploy hooks.

Do you have some feedback for us?

If you have suggestions for improving this article,