Terminal
Terminal/Skill
Deploys a Sitecore Marketplace app to Vercel with correct CSP headers and configuration.
By Vercel
Works with
npx skills add vercel-labs/sitecore-skills --skill marketplace-deployYou 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.
Before deploying, verify:
npm run build
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",
},
],
},
]
Environment variables are set — Check that .env.local exists and has required values
Extension points are registered — All routes defined in the app should be registered in the Developer Portal
npm i -g vercel
vercel link
# 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
# Preview deployment
vercel
# Production deployment
vercel --prod
After deploying:
AUTH0_BASE_URL env var in Vercel to match the production URL (if using Auth0)