Closed kathmbeck closed 2 years ago
thank you @kathmbeck ! Maybe makes sense mentioning the NODE_MANIFEST_MAX_DAYS_OLD
also in the documentation here? What do you think?
thank you @kathmbeck ! Maybe makes sense mentioning the
NODE_MANIFEST_MAX_DAYS_OLD
also in the documentation here? What do you think?
@kathmbeck just a heads up, not sure if you can do anything, but I had a project with Gatsby v4.0.0 and using this PR I got this error:
Missing onError handler for invocation 'extracting-queries', error was 'Error: ENOENT: no such file or directory, open
'...\gatsby-blog-demo\public\__node-manifests\gatsby-source-datocms\69028654-2021-12-07T11:13:23.915+00:0
0.json''. Stacktrace was 'Error: ENOENT: no such file or directory, open '...\gatsby-blog-demo\public\__n
ode-manifests\gatsby-source-datocms\69028654-2021-12-07T11:13:23.915+00:00.json''
And the build failed. Is this expected? Probably something changed on the file name format?
Upgrading to the latest Gatsby v4.3.0 fixes the error. Let me know if that's fine with you and we can merge this!
Commenting here for reference. Per our discussion, this is a known issue with the Windows environment that was corrected with the upgrade.
Removes logic that creates manifests depending on the
updatedAt
time within the source plugin and abstracts away this logic to the new node manifest API.Note that
updatedAt
is optional. IfupdatedAt
is not included, we will create a manifest for every node that gets called with createNodeManifest.We default to creating node manifests for content updated in the last 30 days. To change that, set a NODE_MANIFEST_MAX_DAYS_OLD environment variable.See documentation here for further details: https://www.gatsbyjs.com/docs/reference/config-files/actions/#unstable_createNodeManifest