This is a Next.js blog frontend using Apollo to integrate with Strapi headless CMS using GraphQL.
-
Setup backend Strapi CMS by following https://strapi.io/documentation/
-
Clone this front end repository
-
In next.config.js change the urls
BACKEND_URL: prod
? 'https://production.url'
: 'https://dev.url',
GRAPHQL_API_URL: prod
? 'https://production.url/graphql'
: 'https://dev.url/graphql'
- run
npm run build
npm start
You should be good to go and view your site at http://localhost:3000/