smakosh / gatsby-portfolio-dev

A portfolio for developers

Home Page:https://portfolio.smakosh.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with deployment on Netlify

lindjacob opened this issue · comments

I have been reading all previous bug reports, the readme.md and the resource you suggested on "Integrating Netlify Form Handling in Gatsby".

YET, I cannot figure out how to solve the issue Netlify keeps throwing at me.
It works locally and I have added the tokens for reCAPTCHA to the Netlify environment.

Here is an image of my deployment error:
image

I would greatly appreciate any help you can provide!

Hey @lindjacob that's the GitHub API token that you forgot to include in your env variables

Hi smakosh,
I really appreciate that you take your time to write me!

I believe it should be done. But have I made a mistake then?

This is my local .env.development:
image
I have even tried removing GATSBY_PORTFOLIO and writing the keys in two different ways.

At Netlify, I have added the reCAPTCHA_KEYs:
image
Should I also add a GITHUB_TOKEN there, even though my Netlify is synced with Github?

And if so, how do I make sure that my build has access to it, like I read I had to do with the reCAPTCHA_KEY:
image

Thank you again, for any help provided!

You need to add the GitHub env variable to Netlify as well

Thanks again for your time smakosh.
I had forgotten to copy the Netlify branch into the folder...
(https://github.com/smakosh/gatsby-portfolio-dev/tree/netlify)

Now it's time to play around with it.