contentful-labs / starter-gatsby-blog

Gatsby starter for a Contentful project from the community.
https://contentful.github.io/starter-gatsby-blog/
MIT License
195 stars 199 forks source link

Starter won't build locally #123

Closed spences10 closed 4 years ago

spences10 commented 4 years ago

Hi,

Thanks for the starter!

I followed the onboarding and can run locally with npm run dev but when I build and try to serve it locally I get a config error, which is weird because if there was a config error it wouldn't run on dev would it?

image

Both the CONTENTFUL_SPACE_ID and the CONTENTFUL_ACCESS_TOKEN are present, I've even added them directly to the Gatsby plugin to make sure it wasn't an .env thing.

I was hoping I could spin up something quickly to demo but it's being a bit tricky trying to figure out why it's not serving locally.

Ultimately I'd like to put this on our own server and build each time the content changes via a web hook.

So, I'm still in the proof of concept stage and not getting very far with this.

Is there something simpler I could use just to prove the concept?

Am I missing something?

The documentation only really covers Heroku and Netlify for some reason.

Thanks

goniti commented 3 years ago

I asked myself the same question, it's a shame there was no answer.