You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
Have 50 CSV files for each state with location data and 1 big ~10K row CSV with page slugs to create pages. Gatsby can build locally on very small instances (like using just 1-4 state CSV file), Netlify can only build using 1 state CSV file.
Making sure case sensitivity checks out for netlify
Incremental build using yarn run build and .github/workflows (which actually seemed to work if I just added 4 files at a time locally, not on netlify so worth looking more into)
All I care about is being able to get this thing deployed to Netlify, super frustrating, first Gatsby and React project and I want to wrap it up. Please clone and test different variations of this and see if you can deploy to Netlify. If you want to change the amount of state CSV files used to build do this ...
Add / delete both .csv and .js template for a state
Go into testing-slugs.csv and make sure slugs are only the states you are using (ex. if using alabama and alaska only, the testing-slugs.csv should contain lines 9119 - 9424 only)
Sorry to hear you're running into an issue. I cloned your reproduction locally and was able to build it on my machine:
It's hard to say but looking at your env description above my guess is your local machine may not have enough memory to handle processing the number and size of csv files.
As a workaround I would recommend either trying different configuration options to load only what you need, pre-processing these files into a different format prior to building the site, or switching machines.
@tyhopp Hi, thanks for the reply and trying it locally on your machine. Just curious what machine/specs are you building with? Really appreciate the help and it is nice to know another build succeeded after so many of my failed attempts lol.
Preliminary Checks
Description
Have 50 CSV files for each state with location data and 1 big ~10K row CSV with page slugs to create pages. Gatsby can build locally on very small instances (like using just 1-4 state CSV file), Netlify can only build using 1 state CSV file.
Some of the things I have tried:
All I care about is being able to get this thing deployed to Netlify, super frustrating, first Gatsby and React project and I want to wrap it up. Please clone and test different variations of this and see if you can deploy to Netlify. If you want to change the amount of state CSV files used to build do this ...
Any help is very much appreciated, thanks
Reproduction Link
https://github.com/smf706fish/covid-resources-near-me-site
Steps to Reproduce
...
Expected Result
Build should complete, only around 10k total pages
Actual Result
Build fails pretty much all the time on Netlify
Local build fails a lot too, either Javascript heap out of memory OR Killed:9 (Seg fault I believe)
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: