Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are there two separate sets of gatsby-config.js files? #37

Open
AshwinSundar opened this issue Apr 23, 2022 · 1 comment
Open

Why are there two separate sets of gatsby-config.js files? #37

AshwinSundar opened this issue Apr 23, 2022 · 1 comment

Comments

@AshwinSundar
Copy link

What is the purpose of the site folder? It contains its own gatsby-config.js file that is throwing off my builds.

@alcrene
Copy link

alcrene commented Mar 24, 2023

The site folder is your actual website; it installs the gatsby-theme-intro theme as a dependency.
If you aren't modifying the theme, you actually don't need to clone the repository at all – you only need what is inside site. Indeed, you will notice that there are no git clone instructions in the readme:

mkdir my-site
cd my-site
yarn init -y
yarn add gatsby react react-dom @wkocjan/gatsby-theme-intro

If you do this, you should have a new blank site at the location my-site, with only one gatsby-config.js and thus no conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants