Usage

npx create-next-app -e https://github.com/intermedia-dev/next-template

Environment variables

## Strapi
STRAPI_PREVIEW_SECRET=supersecret
NEXT_PUBLIC_STRAPI_API_URL=http://34.136.163.59:1337
## Password Protection
PROTECTION_USER=admin
PROTECTION_PASSWORD=s3cr3t
## US state
NEXT_PUBLIC_STATE=california

Setup

  • Strapi API (GraphQL)
  • Password Protection (middleware)
  • Home page
  • [slug] (aka article) page
  • styled components
  • markdown to html
  • Preview URL