Combine Webflow’s visual editor with the flexibility of a headless front-end. Learn auth, ISR caching, and webhook revalidation.
Published July 2025 • 12 min read
Webflow powers the CMS & marketing pages, while Next.js handles PWA features, advanced auth, and 100 Lighthouse PWA scores. The 2025 GraphQL API release makes querying painless.
Site Settings → Integrations → Generate Token (read-only scope). Save value WEBFLOW_TOKEN
.
query Posts {
BlogPosts {
items {
_id
name
slug
blogPostExcerpt
publishedOn
}
}
}
export async function GET() {
const res = await fetch('https://graphql.webflow.com/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.WEBFLOW_TOKEN}`
},
body: JSON.stringify({ query })
});
return Response.json(await res.json());
}
Add revalidate: 60
to generateStaticParams
. Trigger /revalidate
route from Webflow Site Publish webhook.
Use react-webflow-rich-text library to convert marks & links.
Pass CMS image URLs to <Image>
component; Next Image handles CDN optimisation since assets are on Webflow’s Fastly edge.
Create server action that fetches draft items with accept-version: draft
header and sets draftKey
cookie.
Headless doesn’t mean ditching Webflow—it means using it where it shines (editing, hosting assets) and extending with React super-powers.
Lorem ipsum dolor sit amet consectetur mi urna tellus dignissim duis at in tempor mauris morbi fermentum dolor lobortis aliquam maecenas.