
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 8 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.