Explore this Example Project
Static Site Generation
This example project uses Next.js' Static Site Generation (SSR). SSG unlocks better performance by statically generating pages that can then be cached by a CDN.
Incremental Static Regeneration
This example project uses Next.js' Incremental Static Regeneration (ISR). This allows you to revalidate static pages without having to rebuild your entire site. By default, Faust.js sets a 15 minute
revalidate time per page.
Learn more about how Faust.js uses ISR.
Ready for Atlas
Atlas is the complete Headless WordPress Platform for absurdly fast dynamic sites. One headless solution, one price, all in one place.
Global Styles and Fonts
Add styles to load on every page, such as typography and layout rules, in
src/scss/main.scss. The project adds normalize.css in
src/pages/_app.tsx. Google Fonts are enqueued in
Fetch data from WordPress with
useGeneralSettings and other custom hooks. Use these hooks in your page templates to pass data to custom components. See
src/pages/index.tsx for examples.
Add or edit components in the
src/components folder. Find component styles at
src/scss/components, which use CSS modules to scope CSS to each component.
The Posts component in src/pages/index.tsx shows the latest six posts from the connected WordPress site.
Questions or comments?
We welcome feature requests, bug reports and questions in the Headless Framework GitHub repository.