Next.js for Drupal has everything you need to build a next-generation front-end for your Drupal site: SSG, SSR, and ISR, Multi-site, Authentication, Webforms, S
Next.js for Drupal has everything you need to build a next-generation front-end for your Drupal site: SSG, SSR, and ISR, Multi-site, Authentication, Webforms, S
A page with all "Article" nodes.
import { NextDrupal } from "next-drupal"
const drupal = new NextDrupal("https://cms.next-drupal.org")
export default function BlogPage({ articles }) {
return (
))
: null}
)
}
export async function getStaticProps(context) {
const articles = await drupal.getResourceCollectionFromContext(
"node--article",
context
)
return {
props: {
articles,
},
}
}Development sponsored by Chapter Three
If you're interested in contributing to Next.js for Drupal, please read the contributing guidelines before submitting a pull request.
No open issues yet, or sync has not completed.