Closed mbrydak closed 1 year ago
You need to add to the .env.development the contentful space id and access token
Ok, thanks, what I understood from the output was, that expected behavior
is for the script to fully create the .env.development
file
On Sun, Sep 18, 2022, 00:04 Kyle Mathews @.***> wrote:
You need to add to the .env.development the contentful space id and access token
β Reply to this email directly, view it on GitHub https://github.com/gatsbyjs/gatsby-starter-landing-page/issues/45#issuecomment-1250147180, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANTHNWNMOEN5QM7ASAQSVY3V6Y55LANCNFSM6AAAAAAQPDHQDI . You are receiving this because you authored the thread.Message ID: @.***>
@mbrydak you are correct, the expected behavior for running gatsby-provision
in a local context is for an environment variable file to be created on your behalf from the values provided when prompted by the script.
Thanks for bringing to our attention. I'll look into the issue but you can unblock yourself in the meantime by doing what Kyle suggested and manually adding those values to your .env.development
file.
@mbrydak finally got around to this, and it looks like there was a pathing issue with where the .env.*
files are created. Would you be able to confirm that those files were created a directory "up" from your project?
@aghreed I had this same issue, and ended up needing to resolve it with the following command:
cp node_modules/.env.development ./.env.development
Leaving here for future users.
Thanks for everyone's patience!
I've gone ahead and addressed this issue and issued PRs for all the repos that consume gatsby-provision-contentful
β not just this one.
I'll be closing out the issue once https://github.com/gatsbyjs/gatsby-starter-landing-page/pull/48 is merged.
While following through with the instructions stated in readme, seemingly
gatsby-provision
works fine (as stated below)But unfortunately βΒ following through with
yarn start
results in an errorThe
.env.development
file looks like it's not properly created.