DEV Community

Static site with Next.js, Contentful & Netlify

Andreas Bergqvist on July 03, 2019

TL;DR Code: https://github.com/itiden/itiden.se/tree/blog (blog branch) Result: https://itiden.se (yeah, it's in Swedish, sorry...) Edi...
Collapse
 
ruhaise profile image
ruhaise

there is a small typo in the importing of content type and content,
contenful is missing in the begining, it should be

contenful space import --space-id <your space id> --content-file contentful-export.json

:)

Collapse
 
andreasbergqvist profile image
Andreas Bergqvist

Fixed! Thanks 😁

Collapse
 
5ervant profile image
Mark Anthony B. Dungo

Whenever I created this ".env" file:

VARIABLE_NAME=variableName

And access it with process.env.VARIABLE_NAME, I'm getting undefined variable.