This is the source code to Wagtail’s Are we headless yet? website frontend built with Next.js.
The backend is available on the Wagtail's website source code.
First, you need to run the backend where the data is pulled from. See wagtail.org's README to setup a local server.
This build assumes the server will be accessible at the following url: http://0.0.0.0:8000/
. Update the .env.development
file to customize this behavior.
Next, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
The site is hosted on Vercel, and is automatically deployed by pushing to the main branch.
Vercel also provides a preview link whenever a new branch is pushed or modified.