We are creating a playbook for migrating legacy marketing microsites to a Jamstack architecture.
The playbook should cover:
- ISR (Incremental Static Regeneration)
- Edge Rendering
- CMS Workflows
- Rollback Semantics
We assume the legacy sites are built with traditional server-side technologies (like PHP, Rails, etc.) and we are moving to a static site generator (like Next.js, Gatsby, etc.) with a headless CMS.
Steps:
-
Assessment and Planning
- Inventory of existing microsites: pages, features, dependencies, user flows.
- Identify content types and structures.
- Determine which pages can be static, which require edge rendering (dynamic personalization, A/B testing, etc.), and which might require server-side functions (if any).
- Choose a static site generator (SSG) and a headless CMS (e.g., Contentful, Sanity, Strapi).
- Plan the migration in phases (by site or by section) to minimize risk.
-
Setting Up the Jamstack Project
- Initialize the SSG project (e.g., Next.js with
create-next-app).
- Configure the headless CMS: set up content models, import existing content (if possible), and set up webhooks for content changes.
- Set up a CI/CD pipeline (e.g., GitHub Actions, GitLab CI) for building and deploying the site.
-
Implementing ISR (Incremental Static Regeneration)
- For pages that are mostly static but need occasional updates (e.g., blog posts, marketing pages with timely info), use ISR.
- In Next.js, use
getStaticPaths and getStaticProps with revalidate option.
- Example:
export async function getStaticProps() {
const data = await fetchData();
return {
props: { data },
revalidate: 60 // in seconds
};
}
- Set up a webhook from the CMS to trigger a rebuild of the specific page (or the entire site) when content changes. Alternatively, rely on the ISR timeout.
-
Implementing Edge Rendering
- For pages that require personalization, A/B testing, or geolocation, use edge rendering.
- In Next.js, use middleware (running on the edge) to rewrite requests, set cookies, or redirect based on conditions.
- Alternatively, use the
edge runtime for server-side functions (API routes) that run at the edge.
- Example of middleware (middleware.js):
import { NextResponse } from 'next/server';
export function middleware(request) {
// Check for a cookie or header
const isPersonalized = request.cookies.get('personalized');
if (!isPersonalized) {
const url = request.nextUrl.clone();
url.pathname = '/default';
return NextResponse.rewrite(url);
}
return NextResponse.next();
}
- Note: Edge rendering might have limitations (no Node.js APIs, limited execution time, etc.).
-
CMS Workflows
- Set up the headless CMS with proper roles and permissions (editors, reviewers, publishers).
- Define the content model (e.g., Page, BlogPost, Product) with fields that match the legacy site's content.
- Migrate existing content: either via CSV import or by building a migration script (if the legacy CMS has an API).
- Set up preview environments: when an editor makes a change, they can preview it before publishing.
- Connect the CMS to the build: on publish, trigger a rebuild (via webhook) of the affected pages. For ISR, the page will automatically update after the revalidate interval.
-
Rollback Semantics
- Since Jamstack sites are static, rolling back can be done by redeploying a previous build.
- We can use atomic deployments: each build is a new version, and we can switch the deployment to a previous one instantly.
- In the CI/CD pipeline, we should keep build artifacts (the static files) for a certain period (e.g., 30 days) so we can roll back.
- For ISR and edge rendering, note that rollback might also involve rolling back the code and the content. We need to consider:
- If we roll back the code, we must also roll back the content to the state that the old code expects? Not necessarily, because the content model might have changed.
- Therefore, it's better to have a full snapshot of the site (code and content) for each release. This can be achieved by:
a. Storing the content (from the headless CMS) as part of the build (pulling content at build time) and also storing the content in the build artifact? But note: the headless CMS is the source of truth for content.
b. Alternatively, we can version the content in the headless CMS (if supported) and then when rolling back code, also roll back the content to the version that was used in that build.
- Practical approach:
- Each build should record the content version (or a snapshot of the content) that it used. We can store the content IDs and their versions (or a hash of the content) in the build artifact.
- When rolling back, we:
Step 1: Roll back the code to the previous version (by deploying the previous build artifact).
Step 2: If the content model has changed, we might need to also roll back the content in the headless CMS? This is risky and might break if the old code expects a different content structure.
- Alternatively, we can avoid data rollback by ensuring that the new code is backward compatible with old content? But that's not always possible.
- Recommended: Use feature flags and incremental migration. Roll back only the code that has changed and keep the content as is? But if the content structure changed, then the old code might break.
- Another idea: Use the headless CMS's versioning to roll back content to the state at the time of the previous build? But we must know which version of the content was used in the previous build.
Let's break down:
Option 1: Build with content snapshot
- At build time, we fetch the content from the headless CMS and generate static files. We also store the content (or a hash of the content) in the build artifact (e.g., a manifest file).
- When rolling back, we deploy the old build artifact (which has the old static files) and also restore the headless CMS to the content version that was used in that build? But how do we know which content version? We can store the content version (or a list of entry IDs and their versions) in the manifest.
Option 2: Do not roll back content, only code
- This is simpler but risky if the code and content are tightly coupled.
-
Additional Considerations
- SEO: Ensure that the static pages have proper meta tags and that the edge rendering does not harm SEO (search engines might not run JavaScript? But modern ones do). For personalization, be cautious not to show different content to search engines than to users (cloaking). Use proper techniques (like delivering the same HTML to all and then personalizing on the client side, or using edge rendering that doesn't change the main content for SEO-critical pages).
- Performance: Jamstack sites are fast because they are static and served from a CDN. Edge rendering adds a bit of latency but is still fast.
- Security: Static sites are more secure because there is no server to attack. Edge functions are stateless and run in a sandbox.
-
Rollback Detailed Steps
Let's define a clear rollback procedure:
Pre-requisites:
- The hosting platform (Vercel, Netlify) keeps at least the last 10 builds (or more) and we can roll back to any of them.
Steps:
1. Identify the problematic deployment (e.g., build number X).
2. Using the hosting platform's dashboard or CLI, roll back to the previous successful build (build number X-1).
3. Verify that the site is functioning as expected.
4. If the issue is due to a code change, fix the code and deploy a new build (with the current content). This new build will be build number X+1.
5. If the issue is due to content (e.g., a bad content edit that broke the layout) and we cannot fix the code, we have two options:
a. Roll back the content in the headless CMS to the state at build X-1 (if the CMS has versioning and we know which version). Then trigger a rebuild (which will use the current code and the old content). But note: the current code might not be compatible with the old content? We are back to the same problem.
b. Alternatively, we can roll back the code as well? But we already rolled back the site to build X-1 (which has old code and old content). Then we can set the production branch to the commit used in build X-1? But then we are stuck in the past.
Given the complexity, it's better to fix the code to handle both old and new content structures until we have fully migrated.
Therefore, the rollback plan is primarily about rolling back the static site to a previous build (which is a full snapshot). Then, we fix the code and deploy again. We do not roll back the CMS content separately because the static snapshot already contains the content. However, if we want to continue operating with the old code (because the new code is broken and we need more time to fix), then we must also set the repository to the old code and pause any content edits that would trigger a build (or be prepared to handle them with the old code).
But note: if we set the repository to the old code, then any new content edit will be built with the old code and the new content (which might break if the content structure changed). So we must ensure that the old code can handle the new content? Not necessarily, because we are in a rollback state and we might have reverted the content structure? This is getting too complex.
Given the above, the simplest and safest:
- Roll back the site to the previous build (using the hosting platform's rollback). This gives us a working site with the old code and old content.
- Then, we fix the new code and deploy a new build (with the new code and the current content). We do not change the repository branch (we stay on the main branch with the new code). The fixed code must be able to work with the current content (which is in the new structure). If the current content structure broke the site, then we must fix the code to handle that structure.
- If the current content structure is broken and we cannot fix the code quickly, we might need to revert the content to the old structure? Then we are back to the same problem: the fixed code must handle the old structure until we can migrate the content again.
-
Summary of the Playbook
Steps for migration:
- Assessment and Planning
- Set up Jamstack project and CMS
- Implement ISR for static pages with occasional updates
- Implement edge rendering for dynamic/personalized pages
- Set up CMS workflows (roles, preview, import content)
- Set up CI/CD with builds on CMS publish
- Test thoroughly (including edge cases and rollback)
Rollback:
- Use hosting platform's rollback to previous build.
- Pause content publishing during incident.
- Fix code and deploy new build.
- Resume publishing.
We assume that the static site generator (like Next.js) and the hosting platform (like Vercel) support ISR and edge rendering.
Note: This playbook is a high-level guide. Each step requires detailed planning and testing.
Let's write the playbook in a structured format.
Jamstack Migration Playbook: Legacy Marketing Microsites
1. Executive Summary
This playbook provides a systematic approach to migrate legacy marketing microsites (PHP/WordPress, Rails, Django, etc.) to a modern Jamstack architecture with Incremental Static Regeneration (ISR), edge rendering, headless CMS workflows, and robust rollback semantics. Target outcomes: 10x faster page loads, 99.99% uptime, and 70% lower infrastructure costs.
2. Pre-Migration Assessment Phase
2.1 Site Inventory & Audit
| Item | Tooling | Output |
|---|
| Page count & routes | Screaming Frog + custom scripts | URL map with templates |
| Dynamic components | Lighthouse CI + RUM data | List of user-specific elements (geo, auth, carts) |
| Asset inventory | Webpack Bundle Analyzer | Image/script sizes, dependencies |
| CMS content model | Legacy DB schema export | Content type mapping table |
| Third-party scripts | Ghostbuster/Blacklist.io | Compliance & performance impact report |
2.2 Architecture Decision Matrix
Legacy Feature → Jamstack Pattern
---------------------------------------
Blog/news → ISR (revalidate: 3600s)
Product pages → ISR + edge middleware (A/B testing)
Location-based content → Edge rendering (Geolocation API)
Contact forms → Serverless functions (edge runtime)
User dashboards → Static export + client-side hydration
2.3 Toolchain Selection
| Layer | Recommended | Enterprise |
|---|
| SSG Framework | Next.js 14 (App Router) | Gatsby 6 (partial hydration) |
| Headless CMS | Sanity.io (structured) | Contentful (enterprise) |
| Edge Platform | Vercel Edge Functions | Cloudflare Workers |
| CI/CD | GitHub Actions + Vercel | GitLab + infrastructure-as-code |
| Monitoring | Sentry + LogRocket | Datadog + New Relic |
3. Migration Execution Phases
3.1 Phase 1: Static Core Migration (Weeks 1-4)
# 1. Scaffold Next.js project with TypeScript
npx create-next-app@latest --typescript --tailwind --app
# 2. Configure ISR patterns
# app/blog/[slug]/page.tsx
export async function generateStaticParams() {
const posts = await fetchAllPosts()
return posts.map(post => ({ slug: post.slug }))
}
export async function generateMetadata({ params }) {
return await fetchPostMetadata(params.slug)
}
# 3. Implement incremental regeneration
export default async function Page({ params }) {
const post = await fetchPost(params.slug, {
next: { revalidate: 3600 } // 1 hour
})
return <PostTemplate post={post} />
}
3.2 Phase 2: Dynamic Edge Features (Weeks 5-6)
Middleware Configuration (middleware.ts):
import { NextResponse } from 'next/server'
export function middleware(request: Request) {
// 1. Geolocation personalization
const geo = request.geo?.country || 'US'
const locale = getLocaleFromGeo(geo)
// 2. A/B testing cookie assignment
const abTest = assignVariant(request, 'homepage_hero', 0.5)
// 3. Bot protection
if (isBot(request)) {
return NextResponse.rewrite(new URL('/bot.html', request.url))
}
// 4. Stale-while-revalidate for legacy API
if (request.nextUrl.pathname.startsWith('/legacy-api')) {
const cacheKey = `legacy-${request.url}`
const cached = await cache.get(cacheKey)
if (cached) return new Response(cached)
const response = await fetchLegacyAPI(request)
cache.set(cacheKey, response.body, { ttl: 60 })
return response
}
}
Edge API Route (app/api/personalized/route.ts):
export const runtime = 'edge'
export const preferredRegion = ['iad1', 'sfo1'] // Co-located with users
export async function GET(request: Request) {
const userToken = request.headers.get('x-user-token')
const personalization = await getPersonalization(userToken)
// 50ms timeout guard
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => reject('timeout'), 50)
)
try {
const data = await Promise.race([
fetchPersonalizedData(personalization),
timeoutPromise
])
return Response.json(data)
} catch (error) {
return Response.json(
{ fallback: getDefaultContent() },
{ status: 200 } // Graceful degradation
)
}
}
3.3 Phase 3: CMS Integration & Workflows
3.3.1 Content Modeling
// Sanity schema example
export default {
name: 'marketingPage',
title: 'Marketing Page',
type: 'document',
fields: [
{ name: 'title', type: 'string', validation: Rule => Rule.required() },
{
name: 'seo',
type: 'object',
fields: [
{ name: 'metaTitle', type: 'string' },
{ name: 'metaDescription', type: 'text' }
]
},
{
name: 'sections',
type: 'array',
of: [{ type: 'reference', to: [{ type: 'section' }] }]
},
{ name: 'isActive', type: 'boolean', initialValue: true }
]
}
3.3.2 Preview & Publishing Pipeline
# .vercel/project.json
{
"rewrites": [
{ "source": "/preview/:path*", "destination": "/api/preview" }
]
}
// app/api/preview/route.ts
import { getPreviewToken } from '@/lib/sanity-preview'
export async function GET(request: Request) {
const { searchParams } = new URL(request.url)
const token = searchParams.get('token')
const slug = searchParams.get('slug')
if (!getPreviewToken(token)) {
return new Response('Invalid token', { status: 401 })
}
const res = NextResponse.rewrite(
new URL(`/${slug}?preview=true`, request.url)
)
res.cookies.set('__next_preview_data', token, {
httpOnly: true,
maxAge: 60 * 60, // 1 hour
path: '/'
})
return res
}
3.3.3 Webhook-Driven Builds
// .github/workflows/cms-webhook.yml
name: CMS Webhook
on:
workflow_dispatch:
inputs:
content_type:
description: 'Content type updated'
required: true
document_id:
description: 'Document ID'
required: true
jobs:
trigger-build:
runs-on: ubuntu-latest
steps:
- name: Determine affected paths
id: paths
run: |
# Call Sanity API to fetch document
DOC=$(curl -s -H "Authorization: Bearer ${{ secrets.SANITY_TOKEN }}" \
"https://api.sanity.io/v2021-10-21/data/query/production?query=*[_id=='${{ github.event.inputs.document_id }}']{slug}")
SLUG=$(echo $DOC | jq -r '.result[0].slug')
echo "affected_paths=/[${{ github.event.inputs.content_type }}]/$SLUG" >> $GITHUB_OUTPUT
- name: Trigger Vercel rebuild
run: |
curl -X POST https://api.vercel.com/v1/integrations/deploy/${{ secrets.VERCEL_INTEGRATION_ID }}/promote \
-H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}" \
-d '{"withTags":["${{ steps.paths.outputs.affected_paths }}"]}'
3.4 Phase 4: Rollback Semantics Implementation
3.4.1 Immutable Deployments Strategy
# vercel.json
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@vercel/next",
"config": {
"maxLambdaSize": "15mb",
"pagesDir": "./app"
}
}
],
"routes": [
{
"src": "/static/(.*)",
"dest": "/static/$1",
"headers": {
"cache-control": "public, max-age=31536000, immutable"
}
}
]
}
3.4.2 Rollback Automation Script
#!/bin/bash
# scripts/rollback.sh
set -e
# 1. Get current and previous deployments
CURRENT_DEPLOY=$(vercel ls --scope $VERCEL_SCOPE --json | jq -r '.[0].id')
PREVIOUS_DEPLOY=$(vercel ls --scope $VERCEL_SCOPE --json | jq -r '.[1].id')
# 2. Validate rollback safety
check_rollback_safety() {
# Check if database schema changed
if [[ $(git diff $PREVIOUS_DEPLOY $CURRENT_DEPLOY -- schema.prisma | wc -l) -gt 0 ]]; then
echo "❌ Database schema changed! Manual review required."
exit 1
fi
# Check critical environment variables
if [[ $(git diff $PREVIOUS_DEPLOY $CURRENT_DEPLOY -- .env.example | grep -E 'PAYMENT|SECRET' | wc -l) -gt 0 ]]; then
echo "❌ Sensitive config changed! Manual review required."
exit 1
fi
}
# 3. Execute rollback with traffic shifting
vercel rollback $CURRENT_DEPLOY --alias production --yes
# 4. Post-rollback health checks
./scripts/health-check.sh https://production.example.com
# 5. Notify team
curl -X POST $SLACK_WEBHOOK_URL \
-H 'Content-type: application/json' \
--data "{\"text\":\"🚨 Rollback completed: $CURRENT_DEPLOY → $PREVIOUS_DEPLOY\"}"
3.4.3 Content-rollback Strategy
// lib/content-versioning.ts
export class ContentVersionManager {
private cache: Map<string, any> = new Map()
async snapshotBeforeDeploy(deployId: string) {
// 1. Export all published content from CMS
const export = await this.cmsClient.export({
format: 'json',
includeDrafts: false
})
// 2. Store in versioned storage (S3 with deploy ID prefix)
await s3.putObject({
Bucket: 'content-snapshots',
Key: `deploy-${deployId}/content.json`,
Body: JSON.stringify(export)
}).promise()
// 3. Record in deployment manifest
await db.deployManifest.create({
deployId,
contentSnapshot: `s3://content-snapshots/deploy-${deployId}/content.json`,
timestamp: new Date()
})
}
async rollbackContent(targetDeployId: string) {
const manifest = await db.deployManifest.findUnique({
where: { deployId: targetDeployId }
})
// 1. Get snapshot
const snapshot = await s3.getObject({
Bucket: 'content-snapshots',
Key: manifest.contentSnapshot.split('/').pop()
}).promise()
// 2. Dry-run validation
const validation = await this.cmsClient.validateImport(snapshot.Body.toString())
if (!validation.valid) {
throw new Error(`Content rollback failed validation: ${validation.errors}`)
}
// 3. Import with versioning
await this.cmsClient.import(snapshot.Body.toString(), {
createMissingTypes: false,
skipCrossReferences: true
})
}
}
4. Advanced Patterns
4.1 Hybrid Rendering Strategy
// app/products/[id]/page.tsx
export default async function ProductPage({ params }: { params: { id: string } }) {
// Always static shell
const skeleton = await getProductSkeleton(params.id)
// Conditional hydration based on user/device
if (shouldUseEdgePersonalization()) {
// Edge middleware will replace placeholder
return <ProductShell skeleton={skeleton} />
} else {
// Full static render for SEO
const product = await getProduct(params.id)
return <ProductContent product={product} />
}
}
// Static generation with ISR
export async function generateStaticParams() {
const products = await getAllProductIds()
return products.map(id => ({ id }))
}
4.2 Progressive Enhancement Ladder
Level 1: Pure HTML/CSS (crawlers, slow networks)
Level 2: + Client-side JS (interactivity)
Level 3: + Edge personalization (geo, AB test)
Level 4: + Real-time data (WebSockets/SSE)
4.3 Stale-While-Revalidate Pattern
# Nginx edge cache for hybrid setups
location /static/ {
expires 1y;
add_header Cache-Control "public, immutable";
# SWR for HTML pages
location ~ ^/.*\.html?$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
add_header Surrogate-Control "content=\"swr, max-age=3600\"";
}
}
5. Monitoring & Validation
5.1 Core Web Vitals Thresholds
| Metric | Target | Alert |
|---|
| LCP | < 1.0s | > 2.5s |
| CLS | < 0.05 | > 0.1 |
| FID | < 50ms | > 100ms |
| TTFB (edge) | < 100ms | > 300ms |
5.2 Canary Deployment Checks
# .github/workflows/canary.yml
jobs:
canary-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy to canary
run: |
vercel alias create ${{ github.sha }} canary.example.com
- name: Run synthetic tests
run: |
npm run test:perf:canary -- --url=https://canary.example.com
- name: Validate content integrity
run: |
# Compare snapshot hashes
PROD_HASH=$(curl -s https://production.example.com/api/content-hash)
CANARY_HASH=$(curl -s https://canary.example.com/api/content-hash)
[ "$PROD_HASH" = "$CANARY_HASH" ] || exit 1
6. Rollback Playbook (Runbook)
6.1 Emergency Rollback Triggers
- P0: Error rate > 5% for 5 minutes
- P1: Core Web Vitals degradation > 50%
- P2: Broken content on > 5% of pages
- P3: Non-critical feature failure
6.2 Step-by-Step Rollback
# 1. Identify bad deployment
vercel ls --scope your-team
# 2. Check deployment health
vercel inspect <deployment-id> --scope your-team
# 3. Execute rollback (with traffic mirroring)
vercel rollback <bad-deployment-id> \
--alias production \
--yes \
--wait
# 4. Validate rollback success
curl -I https://yourdomain.com \
-H "x-vercel-id: $(vercel alias ls production --json | jq -r '.deploymentId')"
# 5. Post-rollback checklist:
# - [ ] All third-party scripts functional
# - [ ] Analytics tracking restored
# - [ ] CMS preview working
# - [ ] No 404s in Search Console
6.3 Content-Specific Rollback
# If only content is broken (code is fine):
# 1. Find affected document IDs
sanity documents list --dataset production --q '_id matches "marketing-*"'
# 2. Rollback to previous version
sanity documents restore <document-id> --dataset production --revision <revision-id>
# 3. Trigger selective rebuild
curl -X POST https://api.vercel.com/v1/integrations/deploy/<integration-id>/promote \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-d '{"withTags":["content-only"]}'
7. Risk Mitigation & Testing
7.1 Migration Testing Pyramid
┌─────────────────┐
│ E2E Tests │ ← Cypress (critical paths)
├─────────────────┤
│ Integration │ ← Playwright (ISR/edge logic)
├─────────────────┤
│ Unit Tests │ ← Jest (components, utils)
├─────────────────┤
│ Visual Diff │ ← Percy (50+ viewports)
└─────────────────┘
7.2 Legacy Feature Parity Matrix
| Legacy Feature | Jamstack Equivalent | Coverage | Risk |
|---|
| PHP forms | Serverless + Resend | 100% | Low |
| WordPress widgets | React components | 95% | Medium (missing some plugins) |
| Apache rewrites | Vercel redirects | 100% | Low |
| Session-based personalization | Edge middleware + cookies | 80% | High (complex logic) |
8. Success Metrics & Go-Live Checklist
8.1 Pre-Launch
8.2 Launch Day
- T+0: Deploy to 5% traffic (feature flag)
- T+15min: Check Core Web Vitals
- T+30min: Increase to 25% traffic
- T+60min: Full cutover if all green
8.3 Post-Migration Validation
# 1. Crawl comparison
npx playwright-test --compare legacy=production,new=staging
# 2. Performance regression check
lighthouse-ci https://new.example.com \
--perf=100 \
--seo=100 \
--accessibility=100 \
--pwa=100
# 3. Content integrity check
npm run validate-content-hashes -- --baseline=legacy-hash.json
9. Appendix
9.1 Common Pitfalls & Solutions
| Issue | Root Cause | Fix |
|---|
| "Hydration mismatch" errors | Client/server render divergence | Use useEffect for browser-only APIs |
| Stale ISR content | Webhook not configured | Double-check CMS webhook URL + retry logic |
| Edge function timeouts | Cold starts > 50ms | Use --max-old-space-size optimization |
| Rollback fails | DB schema drift | Use migration tools (Prisma Migrate) with reversible scripts |
9.2 Cost Optimization
- ISR cache hits: Configure
stale-while-revalidate at CDN level
- Edge function memory: Set
maxMemory to 128MB (most use cases)
- Image optimization: Use Next.js Image component + Cloudflare Images
- Build minutes: Cache dependencies (
next build --cache .next/cache)
9.3 Security Hardening
// middleware.ts security additions
export function middleware(request: Request) {
// 1. CSP enforcement
const csp = [
"default-src 'self'",
"script-src 'self' 'unsafe-inline' https://www.googletagmanager.com",
"style-src 'self' 'unsafe-inline'"
].join('; ')
const response = NextResponse.next()
response.headers.set('Content-Security-Policy', csp)
// 2. HSTS
response.headers.set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains')
// 3. Referrer policy
response.headers.set('Referrer-Policy', 'strict-origin-when-cross-origin')
return response
}
📌 Final Note: This playbook assumes a greenfield migration (not incremental). For partial migrations, implement parallel run with reverse proxy routing (/old/* → legacy, /new/* → Jamstack) and gradually shift traffic using feature flags.
🔧 Required Pre-work:
- Headless CMS sandbox environment
- Static export of all legacy pages (for URL mapping)
- Team training on Git workflow + PR processes
- Performance budgets documented and agreed upon
⏱ Estimated Timeline: 8-12 weeks for 50-page microsite network with 3-person team.