Drupal 版的 Next.js 提供了构建 Drupal 站点下一代前端所需的一切功能: SSG、SSR 和 ISR、多站点、身份验证、Web 表单、S
Drupal 版的 Next.js 提供了构建 Drupal 站点下一代前端所需的一切功能: SSG、SSR 和 ISR、多站点、身份验证、Web 表单、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.
暂无开放 Issues,或尚未同步最近议题。