SarKurd / Nextjs-contentful-blog

A blog using NextJS and contentful

Home Page:https://nextjs-contentful-blog.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nextjs, Contentful blog

lighthouse score

Usage

If you are deploying to Now

1- Install Now cli

npm i -g now or yarn global add now

2- Add the secrets to Now

now secrets add contentful_access__token <token>
now secrets add contentful_space_id <space id>

3- Create a .env.build file and put the secrets in there too for local testing

CONTENTFUL_SPACE_ID=<space id>
CONTENTFUL_ACCESS_TOKEN=<token>

4- Run now dev

If you are NOT deploying to Now

1- Update next.config.js environment variables with your own token and spaceId and remove now.json

2- Run yarn dev

About

A blog using NextJS and contentful

https://nextjs-contentful-blog.now.sh

License:MIT License


Languages

Language:JavaScript 100.0%