networkteam/neos-next
最新稳定版本:v0.5.0
Composer 安装命令:
composer require networkteam/neos-next
包简介
Adds Next.js support to Neos CMS
README 文档
README
This package adds special support for Next.js to Neos CMS.
- Provides preview rendering for nodes (a.k.a. out of band rendering) through the Next.js frontend
- Send revalidation requests to Next.js for changed document nodes
Note: Make sure to add
@networkteam/zebrain your Next.js project.
The actual content will be provided to Next.js via the Networkteam.Neos.ContentApi package.
Why two packages?
Networkteam.Neos.ContentApi is a more generic package for fetching content from Neos CMS in JSON format and is
configurable via Fusion. It is not specific to Next.js and can be used for other use cases as well.
Configuration
The Next.js URL must be known for Neos CMS for the integration to work correctly. The default configuration works for a local Next.js server.
Networkteam: Neos: Next: # Configure Next.js setting by site node name sites: # The default settings are used for all sites without a specific configuration _default: # The base URL for the Next.js frontend nextBaseUrl: http://localhost:3000/ revalidate: # The URI for revalidation could be a path or an absolute URL uri: '/api/revalidate' token: 'a-secret-token' # Add additional site configurations by site node name # # mySiteNode: # nextBaseUrl: http://my-site.local:3000/
Note: A long random token should be used for production configuration.
License
统计信息
- 总下载量: 4.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-17