
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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.
FAQs
🔌 SvelteKit Adapter for Cloudflare Pages with nodejs_compat
The npm package @jill64/adapter-cloudflare receives a total of 0 weekly downloads. As such, @jill64/adapter-cloudflare popularity was classified as not popular.
We found that @jill64/adapter-cloudflare 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.