marketplace-deploy
Deploys a Sitecore Marketplace app to Vercel with correct CSP headers and configuration.
How do I install this agent skill?
npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-deployIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a structured workflow for deploying Sitecore Marketplace applications to Vercel, emphasizing security best practices such as Content Security Policy (CSP) configuration and managed environment variable handling. It utilizes standard deployment tools and includes multiple verification steps to ensure production readiness.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerfail
2/2 files flagged
What does this agent skill do?
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:
- 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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/vercel-labs/sitecore-skills/marketplace-deploy">View marketplace-deploy on skillZs</a>