Node.js is a popular JavaScript runtime for building server-side apps, offering access to system resources and core modules like fs, path, and http. Many npm packages depend on these modules or other Node.js-specific APIs.
Edge environments, such as Webflow Cloud, run code closer to users for better speed, scalability, and security. Instead of full Node.js support, Webflow Cloud relies on Web APIs such as fetch, Request, and Response. While Workers runtime compatibility with Node.js APIs is improving, key differences and limitations remain.
Understanding these differences is essential for building apps on Webflow Cloud.
The Workers runtime is steadily expanding support for Node.js APIs, but there are still limitations.
Buffer, crypto, stream, and path. See the Cloudflare Node.js compatibility matrix for the full list.When you deploy to Webflow Cloud, Node.js compatibility settings are automatically applied to your Worker.
If you use an unsupported Node.js API, you may see errors in your build logs:
If you encounter these errors, switch to native Web APIs or supported APIs. For more details, see the Cloudflare Node.js compatibility matrix and the official Cloudflare Workers Node.js API docs.
Node.js APIs aren’t always supported in the edge runtime. When that’s the case, use the equivalent Web API. See below for a list of common Node.js APIs and their Web counterparts.
Many popular libraries now rely on Web APIs instead of Node.js core modules. When possible, choose libraries built for edge environments or with pure JavaScript implementations.
To help, we’ve compiled a list of popular libraries and their edge-compatible alternatives.
ReferenceError: process is not defined or Module not found: fs. These indicate Node.js dependencies that aren’t supported in the Workers runtime.unenv may not work as expected on Webflow Cloud.