This is the existing cms-sitefinity plus TypeScript. This example showcases Next.js's Static Generation feature using Sitefinity CMS as the data source.
https://next-cms-sitefinity.vercel.app/
Deploy the example using Vercel or preview live with StackBlitz
- AgilityCMS
- Builder.io
- ButterCMS
- Contentful
- Cosmic
- DatoCMS
- DotCMS
- Drupal
- Enterspeed
- Ghost
- GraphCMS
- Kontent.ai
- MakeSwift
- Payload
- Plasmic
- Prepr
- Prismic
- Sanity
- Sitecore XM Cloud
- Sitefinity
- Storyblok
- TakeShape
- Tina
- Umbraco
- Umbraco heartcore
- Webiny
- WordPress
- Blog Starter
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example cms-sitefinity cms-sitefinity-appyarn create next-app --example cms-sitefinity cms-sitefinity-apppnpm create next-app --example cms-sitefinity cms-sitefinity-appFirst, install and run the CMS Locally.
For the purpose of this demo a ready to use dynamic module was build containing two types - 'Post' and 'Author'.
In order to install it:
- Open the CMS Administration under (/Sitefinity)
- Open the Export/Import screen under (/Sitefinity/Administration/Packaging)
- Click on Import Zip file and import the file from the sitefinity folder
By default the web services are not allowed for anonymous users, so the yhave to be enabled.
Go to /sitefinity/Administration/WebServices and edit the 'Default' web service to allow it to be accessible by 'Everyone'
- Add the Sitefinity CMS nugget source
- Install the Progress.Sitefinity.GraphQL package (enable prerelease filter).
Copy the .env.local.example file in this directory to .env.local (which will be ignored by Git):
cp .env.local.example .env.localThen set each variable on .env.local
SF_API_URL- This is the url of the 'Default' web service that we configured earlier. E.g. http://locahost/api/default/SF_URL- This is the URL of the CMS itself. E.g. http://localhost/
npm install
npm run dev
# or
yarn
yarn devYour blog should be up and running on http://localhost:3000! If it doesn't work, post on GitHub discussions.