How do you migrate a Next.js marketing site to Webflow?
You migrate a Next.js marketing site to Webflow by rebuilding the pages in Webflow's Designer, recreating your content model as Webflow CMS collections, importing the content, and pointing your domain at Webflow while the app stays on Next.js. There's no import for code, so layouts are rebuilt and content is moved as data.
Webflow is the right destination when your marketing team edits a lot of structured content: blog posts with authors and categories, customer stories linked to industries, integrations pages, resources. It handles relationships between content better than most visual builders. For the broader choice between builders and staying in code, read our hub on moving from code to a visual builder.
This guide focuses on the step that decides whether the migration feels clean or messy: getting MDX files or headless CMS entries into Webflow CMS without losing structure.
What should stay on Next.js when you move to Webflow?
The product app, authentication, API routes and anything that reads from your database stay on Next.js. Webflow takes the public marketing pages, the blog and landing pages.
The cleanest split puts Webflow on example.com and the app on app.example.com. If you need the app at example.com/app, you'll need a reverse proxy in front of both, and Webflow's support for serving under a proxy depends on your plan, so check Webflow's current terms first. We compare the setups in splitting your marketing site from your app.
Docs are the grey area. Developer docs written in MDX often stay in code or move to a docs tool, because engineers write them and they rely on code samples and versioning. Moving them into Webflow CMS is possible but rarely worth it.
How do you map MDX or headless CMS content to Webflow CMS?
Map content by listing every field in your current source, front matter in MDX or fields in Contentful, Sanity or Payload, and assigning each one a Webflow field type. Do this in a spreadsheet before building any templates, because the template depends on the fields.
Source field | Typical source format | Webflow CMS field |
|---|---|---|
Title, slug, excerpt | Front matter or text fields | Name, Slug, Plain text |
Body | MDX, Portable Text or Contentful rich text | Rich text (as HTML) |
Cover image | Local file path or asset ID | Image (public URL at import) |
Publish date | ISO date string | Date/Time |
Author | Reference or front-matter string | Reference to an Authors collection |
Tags or categories | Array of strings or references | Multi-reference |
Featured flag | Boolean | Switch |
SEO title and description | Front matter or SEO fields | Plain text, bound to page settings |
If your old model has fields nobody uses, drop them now. A migration is the cheapest moment to simplify. A field that was added for one campaign two years ago doesn't need a home in Webflow, and neither does a category with two posts in it.
Converting MDX, Portable Text and Contentful rich text
Webflow's rich-text field takes HTML: headings, paragraphs, lists, links, images, quotes and embeds. Anything else needs converting.
MDX: render each post to HTML with your existing Markdown pipeline, then replace custom components. A callout component can become a blockquote; an interactive demo becomes an embed or is dropped.
Sanity Portable Text and Contentful rich text are JSON structures. Both have official HTML serializers you can run in a script. Map custom block types to plain HTML equivalents before export, and check a sample of converted posts by eye.
What are the steps in a NextJS to Webflow migration?
A Next.js to Webflow migration has eight steps. Content work runs alongside the design build, not after it.
Crawl and benchmark
Export every URL, top pages, rankings and conversions so you can compare after launch.
Audit pages and posts
Decide what to keep, merge, rewrite, redirect or delete before anything is rebuilt.
Map the content model
Assign every source field a Webflow field type and decide collection structure and URL paths.
Build templates in Webflow
Create a class system, page templates and CMS template pages bound to your new fields.
Convert and clean content
Export MDX or CMS entries, convert rich text to HTML, and host images at public URLs.
Import in dependency order
Import authors and categories first, then posts that reference them, by CSV or the Data API.
Rebuild SEO settings
Bind SEO fields to page settings, add schema, set 301 redirects in Webflow's settings for changed paths.
Launch and monitor
Move DNS, publish, submit the sitemap and watch Search Console and form submissions.
CSV import or Data API: which should you use?
Use CSV import for small, simple collections and the Webflow Data API for anything large, relational or rich-text heavy. Many migrations use both: CSV for authors and categories, the API for posts.
Pros
- CSV import needs no code and is fine for flat collections
- The Data API handles references, rich text and images more reliably
- Scripts can be rerun, so you can fix and reimport quickly
- The API lets you publish items in batches after review
Cons
- CSV import can mangle rich-text images and complex HTML
- References in CSV must match existing items exactly
- The API needs a developer and respects rate limits
- Both need the collection structure finished first
Whichever route you pick, run a test import of ten items first, publish them to a staging domain, and compare them with the live posts. Webflow's own Data API documentation covers the endpoints for collection items, and its help center documents the CSV importer.
How do you protect SEO when moving from Next.js to Webflow?
You protect SEO by keeping URL paths, metadata and content stable, then redirecting only what you've changed. Webflow serves server-rendered HTML, so crawling is rarely the issue; lost settings and changed paths are.
- Match paths. Webflow CMS pages live under a collection path. Name collections so /blog/post-name stays /blog/post-name.
- Recreate metadata. Titles and descriptions from Next.js code must be entered or bound in Webflow's page settings.
- Add schema. Article, FAQ and organization schema need custom code in page settings or templates.
- Check performance. Core Web Vitals change with the platform. Our guide to Core Web Vitals for Framer, Webflow and Next.js lists Webflow-specific fixes.
If your Next.js site rendered content in the browser, the move to Webflow can lift visibility for crawlers that don't run JavaScript, which we explain in server-side rendering for AI crawlers.
Is Webflow the right destination for your Next.js site?
Webflow is right if your team publishes structured content often and wants a strong CMS with references. Framer is often better for design-led teams focused on landing pages; see our Next.js to Framer migration guide.
Check Webflow's current pricing before committing. Its May 2026 change merged the CMS and Business plans into a single Premium tier, and seats add to the bill, so check the current pricing page against your item count and team size. If you're moving the other way, our Webflow to Next.js migration guide covers that direction.
