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

Is the __node-manifests directory necessary for builds to run? #190

Open
struct78 opened this issue Nov 7, 2022 · 3 comments
Open

Is the __node-manifests directory necessary for builds to run? #190

struct78 opened this issue Nov 7, 2022 · 3 comments

Comments

@struct78
Copy link

struct78 commented Nov 7, 2022

My builds are generating over 700,000 JSON files in this folder, which is absolutely killing my deployment times (not to mention my S3 bill $$).
Assume they're not needed by the production bundles as I can't see any network requests for them?

@struct78 struct78 changed the title Is the __node-manifests directory necessary for deployments? Is the __node-manifests directory necessary for builds to run? Nov 8, 2022
@sven5
Copy link

sven5 commented May 11, 2023

@evenwestvang Could you help?
Still open? We're facing the same problem.

@struct78
Copy link
Author

struct78 commented May 24, 2023

For the record @sven5, I solved the issue like this:

gatsby-node.js

export const onPostBuild = () => {
  fs.rmSync(path.resolve("./public/__node-manifests"), { recursive: true, force: true })
}

@sven5
Copy link

sven5 commented May 24, 2023

@struct78 Thank you!

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