LabscoConnect MCP โ†—
vercel-labs logoโ˜… 3

marketplace-deploy

Puts a finished Sitecore add-on online on Vercel and tells Sitecore where to find it โ€” including the one header setting without which Sitecore refuses to display it at all.

by vercelpart of vercel-labs/sitecore-skills
๐Ÿ”ฅ๐Ÿ”ฅ โœ“ VerifiedFree#devops

WHEN YOUR AGENT SHOULD USE IT

A QUICK BOUNDARY

USE FOR

  • Ship a first production deploy of an app that has only ever run locally.
  • Set the Vercel environment variables an Auth0-based marketplace app needs before deploying.
  • Point a Sitecore app's Developer Portal settings at its new Vercel production URL.
  • Confirm a marketplace app's local build succeeds before pushing it to production.

Documents

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

Deploy to Vercel

You are helping the user deploy their Sitecore Marketplace app to Vercel.

Important: This skill has real side effects (deploying to production). Confirm each step with the user before executing.

Pre-Deploy Checklist

Before deploying, verify:

  1. Build succeeds locally:
npm run build
  1. CSP headers are configured โ€” Check next.config.ts for frame-ancestors:
// next.config.ts must include:
headers: [
  {
    source: "/(.*)",
    headers: [
      {
        key: "Content-Security-Policy",
        value: "frame-ancestors 'self' https://*.sitecorecloud.io",
      },
    ],
  },
]
  1. Environment variables are set โ€” Check that .env.local exists and has required values

  2. Extension points are registered โ€” All routes defined in the app should be registered in the Developer Portal

Deploy Steps
Step 1: Install Vercel CLI (if needed)
npm i -g vercel
Step 2: Link to Vercel project
vercel link
Step 3: Set environment variables
# For client-side apps
vercel env add NEXT_PUBLIC_SITECORE_APP_ID

# For full-stack (Auth0) apps โ€” add all Auth0 vars too
vercel env add AUTH0_SECRET
vercel env add AUTH0_BASE_URL
vercel env add AUTH0_ISSUER_BASE_URL
vercel env add AUTH0_CLIENT_ID
vercel env add AUTH0_CLIENT_SECRET
vercel env add AUTH0_AUDIENCE
vercel env add AUTH0_SCOPE
Step 4: Deploy
# Preview deployment
vercel

# Production deployment
vercel --prod
Step 5: Post-Deploy Configuration

After deploying:

  1. Copy the production URL from Vercel
  2. Go to Sitecore Developer Portal โ†’ Your App โ†’ Settings
  3. Set the App URL to the Vercel production URL
  4. Update AUTH0_BASE_URL env var in Vercel to match the production URL (if using Auth0)
Reference Files

Installation

Install this skill from vercel-labs/sitecore-skills on GitHub, not from a copy somewhere else. The command below does this for you.

Copy & paste โ€” that's it
npx skills add vercel-labs/sitecore-skills --skill "marketplace-deploy" --full-depth

Run this in your project โ€” your agent picks the skill up automatically.

BEFORE IT WILL WORK

2 FOR YOU ยท 1 FOR THE AGENT
  1. 01

    Confirm the local build passes first

  2. 02

    Set the app's environment variables in Vercel

  3. 03

    Point the app's Sitecore settings at the new URL