---
title: "Deploy your front-end application to Dataweavers Arc"
slug: "deploy-your-front-end-application-to-dataweavers-arc"
abstract: "Set up your Content SDK Next.js application to continuously deploy to Dataweavers Arc when you push code changes to your source control repository."
---
# Deploy your front-end application to Dataweavers Arc

Dataweavers Arc is a managed hosting platform that runs your Content SDK Next.js application in your Microsoft Azure subscription as a single-tenant deployment. Arc uses Azure Pipelines in your Azure DevOps organization to deploy your application.

This procedure assumes that your front-end application is stored in a Git repository.

This procedure does not describe:

- How to automatically update pages when content changes in SitecoreAI. To regenerate pages on publish without redeploying the application, refer to the [Dataweavers documentation for Spark](https://support.dataweavers.com/hc/en-us/articles/16522738930191-Spark-How-to-get-started-with-SitecoreAI).
- How to configure your editing host. Your editing host continues to run in SitecoreAI.

> [!note]
> **Before you begin**
> - Ensure you have a Dataweavers Arc account. You can contact your regional Dataweavers representative or email hello@dataweavers.com, or speak with your Sitecore account executive about engaging with Dataweavers.
> - Ensure your SitecoreAI environment and website are created.
> - Provision your Arc environment in the [Dataweavers Dashboard](https://dashboard.dataweavers.com/). The Dashboard deploys the Arc infrastructure into your own Azure subscription. Create one Arc environment for each SitecoreAI environment.
> - Add the `@dataweavers/arc-core` and `@dataweavers/redis-page-caching` npm packages to your Next.js application. These packages connect the application to Azure Application Insights and Redis page caching and add the routes Arc uses during deployment. See [How to add Dataweavers NPM packages](https://support.dataweavers.com/auth/v3/signin?brand_id=900002709086&locale=en-us&return_to=https%3A%2F%2Fsupport.dataweavers.com%2Fhc%2Fen-us%2Farticles%2F16155139013647&role=end_user).
> - Set up the Arc head application pipeline in Azure DevOps. Install the `Dataweavers Azure Pipelines for Arc` extension in your Azure DevOps organization, create a service connection and an environment for each Arc environment, and add the Arc standard pipelines to your repository. See [Understanding Arc pipelines](https://support.dataweavers.com/auth/v3/signin?brand_id=900002709086&locale=en-us&return_to=https%3A%2F%2Fsupport.dataweavers.com%2Fhc%2Fen-us%2Farticles%2F17246855821199&role=end_user).
> - Ensure you have the `SITECORE_EDGE_CONTEXT_ID` and `NEXT_PUBLIC_DEFAULT_SITE_NAME` environment variables and any other relevant or custom environment variables.
> - In your SitecoreAI instance, publish the changes that you want to make available on your website.
> - Commit and push your Next.js application changes to your source control repository.
>

## Deploy your application

You can use the [Dataweavers Dashboard](https://dashboard.dataweavers.com/) to configure your environment and trigger the deployment pipeline.

To deploy your application:

1. In the Dataweavers Dashboard, add the necessary environment variables:
    - `SITECORE_EDGE_CONTEXT_ID` - your unified Context ID. Use the Preview Context ID for all content and layout data, or the Live Context ID for published data only.
    - `NEXT_PUBLIC_DEFAULT_SITE_NAME` - the name of the site.
    - Add other environment variables (`SITECORE_EDGE_URL`, `NEXT_PUBLIC_SITECORE_EDGE_CONTEXT_ID`, `SITECORE_EDITING_SECRET`) including custom environment variables you've added to your .env file.

2. Trigger the deployment pipeline.
3. When the deployment finishes, verify that the site renders as expected.