---
title: "Integrating Next.js applications"
date: "2025-08-05T19:49:06+00:00"
summary: "Seamlessly integrate Next.js with Acquia Source for enhanced headless capabilities. Learn setup, management, and preview configuration."
image:
type: "page"
url: "/acquia-source/integrating-nextjs-applications"
id: "06bad410-402b-498f-bb3c-5515f991fd6b"
---

Acquia Source works well with Next.js for building headless or decoupled front-ends, enhancing capabilities such as Draft preview. Next.js sites can connect to the CMS with minimal setup.

Enabling Next.js integrations
-----------------------------

Use the following steps to enable Next.js integrations:

1.  [Access your site](/node/69836#access-a-site).
2.  In the left sidebar, click **API** \> **Next.js**.
3.  Enable the **Enable Next.js integration** toggle.
4.  Click **Save**.

Managing Next.js integrations
-----------------------------

Use the following steps to manage Next.js integrations:

1.  [Access your site](/node/69836#access-a-site).
2.  In the left sidebar, click **API** \> **Next.js integration**.
    
    Here, you can configure existing Next.js sites or add a new one by clicking **Add Next.js site**.
    
    ![acquia-source_add-nextjs-site](https://acquia.widen.net/content/cc1024fb-a67a-45d0-be55-a53dc234525b/web/15487_acquia-source_add-nextjs-site.png?w=720&itok=ZtuzyMT2)
    
3.  On the Add Next.js site page, enter a label and the base URL of the Next.js site.
4.  Configure on-demand revalidation of content.
    
    On-demand revalidation is a feature that allows the CMS to invalidate the Next.js site’s data cache, ensuring the latest content is fetched following updates.
    
    ![acquia-source_on-demand-revalidation](https://acquia.widen.net/content/b58562f0-a797-4d88-96e5-cc1e621c19ad/web/5e64e_acquia-source_on-demand-revalidation.png?w=720&itok=tvE9lorm)
    
5.  Click **Save**.

Configuring the Next.js preview
-------------------------------

By default, previews are automatically enabled when a Next.js site is configured. After configuration, content authors can preview unpublished content to see how it will appear on their Next.js site.

![acquia-source_nextjs-preview](https://acquia.widen.net/content/8f975ffb-b1af-411d-abf1-6471028c4ae9/web/969f0_acquia-source_nextjs-preview.png?w=720&itok=pzD-PpPS)

For detailed guidance, refer to the [Next.js integration documentation](https://next-drupal.org/).