Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
gatsby-plugin-contentstack-client-side-redirect
Advanced tools
Generates client side redirect html files for redirecting on any static site host like s3 or netlify.
Generates client side redirect html files for redirecting on any static site host like s3 or netlify.
It uses window.location.href = url
for redirection and createRedirect
action provided by Gatsby
npm install --save gatsby-plugin-contentstack-client-side-redirect
// Register this plugin in gatsby-config.js
plugins: [
`gatsby-plugin-contentstack-client-side-redirect`,
`gatsby-plugin-client-side-redirect` // make sure to put last in the array
];
For contentstack specific only -
Steps -
Redirects
Redirects
contenttypeold_url
and new_url
and save itHave a look at the code if you are interested :)
const response = await graphql(`
query redirects {
allContentstackRedirects {
edges {
node {
urls_mapping {
old_url
new_url
}
}
}
}
}`)
const allEntries = response.data.allContentstackRedirects.edges
let urls
if (allEntries)
{
allEntries.forEach(entry => {
urls = entry.node.urls_mapping
if (urls)
{
createRedirect({ fromPath: urls.old_url, toPath: urls.new_url, isPermanent: true })
}
})
}
FAQs
Generates client side redirect html files for redirecting on any static site host like s3 or netlify.
The npm package gatsby-plugin-contentstack-client-side-redirect receives a total of 0 weekly downloads. As such, gatsby-plugin-contentstack-client-side-redirect popularity was classified as not popular.
We found that gatsby-plugin-contentstack-client-side-redirect 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.