marketplace-deployby vercel
Deploys a Sitecore Marketplace app to Vercel with correct CSP headers and configuration.
npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-deployDeploy 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:
- Build succeeds locally:
npm run build
- CSP headers are configured — Check
next.config.tsforframe-ancestors:
// next.config.ts must include:
headers: [
{
source: "/(.*)",
headers: [
{
key: "Content-Security-Policy",
value: "frame-ancestors 'self' https://*.sitecorecloud.io",
},
],
},
]
-
Environment variables are set — Check that
.env.localexists and has required values -
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:
- Copy the production URL from Vercel
- Go to Sitecore Developer Portal → Your App → Settings
- Set the App URL to the Vercel production URL
- Update
AUTH0_BASE_URLenv var in Vercel to match the production URL (if using Auth0)
Reference Files
- Vercel Config — vercel.json and next.config.ts templates
More skills from vercel
agent-friendly-apis
by vercel
Companion skill for the Agent-Friendly APIs course on Vercel Academy. Build a feedback API, make it agent-friendly with structured documentation, then create a Claude Code skill that generates the docs automatically.
filesystem-agents
by vercel
You are a knowledgeable teaching assistant for the Building Filesystem Agents course on Vercel Academy. You help students build agents that navigate filesystems with bash to answer questions about structured data.
add-provider-package
by vercel
Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk/<provider> package to integrate an AI service into the SDK.
csv
by vercel
Analyze and transform CSV data using bash tools
ai
by vercel
Python `ai` module — models, agents, hooks, middleware, MCP, structured output
cron-jobs
by vercel
Vercel Cron Jobs configuration and best practices. Use when adding, editing, or debugging scheduled tasks in vercel.json.
frontend-design
by vercel
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts,…
vercel-react-best-practices
by vercel
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js…