next-drupal

Next.js for drupal

Next.js for Drupal

Next-generation front-end for your Drupal site.

https://demo.next-drupal.org

https://next-drupal.org

Deploy with Vercel

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 (
    
{articles?.length ? nodes.map((node) => (

{node.title}

)) : 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.