Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@jill64/adapter-cloudflare
Advanced tools
🔌 SvelteKit Adapter for Cloudflare Pages with nodejs_compat
🔌 SvelteKit Adapter for Cloudflare Pages with nodejs_compat
This adapter is based on Node.js compatibility and allows some node modules to be used with Cloudflare Pages.
npm i -D @jill64/adapter-cloudflare
// svelte.config.js
import adapter from '@jill64/adapter-cloudflare'
export default {
kit: {
adapter: adapter({
/* @sveltejs/adapter-cloudflare options */
// routes: {
// // ...
// }
})
}
}
If you need a node module that is not officially supported, add a polyfill with the following options based on esbuild-plugin-polyfill-node.
// svelte.config.js
import adapter from '@jill64/adapter-cloudflare'
export default {
kit: {
adapter: adapter({
// /* esbuild-plugin-polyfill-node options */
// globals: {
// // ...
// },
// polyfills: {
// // ...
// }
})
}
}
Enable Node.js compatibility in Cloudflare Pages.
nodejs_compat
to the Compatibility flags.Deploy your project.
MIT
FAQs
🔌 SvelteKit Adapter for Cloudflare Pages with nodejs_compat
The npm package @jill64/adapter-cloudflare receives a total of 2 weekly downloads. As such, @jill64/adapter-cloudflare popularity was classified as not popular.
We found that @jill64/adapter-cloudflare demonstrated a healthy version release cadence and project activity because the last version was released less than 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.