![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gatsby-plugin-content-hash
Advanced tools
Add content hash to requests for app-data.json and page-data.json generated by Gatsby.
Add content hash to requests for app-data.json
and page-data.json
generated by Gatsby. This plugin is probably needed for the Gatsby app to work properly in an environment like GitHub Pages where file cache control is not possible. For details, refer to the issue below.
Why are page-data.json files not content hashed? #15080
This plugin only works on files generated by gats by build
.
It works on Gatsby v2, v3 and v4.
gatsby-plugin-content-hash-example
npm i --save gatsby-plugin-content-hash
In your gatsby-config.js
:
{
resolve: "gatsby-plugin-content-hash",
options: { build_root_path: `${__dirname}/public` },
},
option | default | description |
---|---|---|
build_root_path | none, you must specify in your gatsby-config.js . See the usage example above. | The directory where the built static files are located. |
hashing_target_file_names | ['app-data.json', 'page-data.json'] | Resource file names to add the hash. |
You will find the following log in the npm run build
command.
info [gatsby-plugin-content-hash] modified 27 HTML/JS files.
And the built app will reference the hashed app-data.json
and page-data.json
.
MIT
FAQs
Add content hash to requests for app-data.json and page-data.json generated by Gatsby.
The npm package gatsby-plugin-content-hash receives a total of 14 weekly downloads. As such, gatsby-plugin-content-hash popularity was classified as not popular.
We found that gatsby-plugin-content-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.