Skip to content

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, Search API, I18n and Preview mode (works with JSON:API and GraphQL).

License

Notifications You must be signed in to change notification settings

chapter-three/next-drupal

Folders and files

NameName
Last commit message
Last commit date
Oct 4, 2024
Nov 3, 2023
Jan 5, 2024
Apr 30, 2024
Jan 22, 2025
Feb 11, 2025
Feb 11, 2025
Feb 11, 2025
Dec 2, 2021
Feb 11, 2025
Oct 10, 2023
Feb 21, 2024
Jan 21, 2025
Nov 3, 2023
Jan 27, 2025
Nov 22, 2023
Feb 23, 2023
Apr 18, 2024
Nov 3, 2023
Nov 3, 2023
Dec 6, 2022
Jan 27, 2025
Oct 1, 2021
Apr 24, 2024
Jan 17, 2022
Feb 28, 2024
Feb 28, 2024
Jan 30, 2021
Jan 6, 2024
Apr 18, 2024
Nov 22, 2023
Oct 11, 2024
Jan 27, 2025

Repository files navigation

Next.js for drupal

Next.js for Drupal

Next-generation front-end for your Drupal site.

Demo

https://demo.next-drupal.org

Documentation

https://next-drupal.org

Deploy to Vercel

Deploy with Vercel

Example

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 (
    <div>
      {articles?.length
        ? nodes.map((node) => (
            <div key={node.id}>
              <h1>{node.title}</h1>
            </div>
          ))
        : null}
    </div>
  )
}

export async function getStaticProps(context) {
  const articles = await drupal.getResourceCollectionFromContext(
    "node--article",
    context
  )

  return {
    props: {
      articles,
    },
  }
}

Supporting organizations

Development sponsored by Chapter Three

Contributing

If you're interested in contributing to Next.js for Drupal, please read the contributing guidelines before submitting a pull request.

About

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, Search API, I18n and Preview mode (works with JSON:API and GraphQL).

Topics

Resources

License

Security policy

Stars

Watchers

Forks