Cloudflare Workers

Deploy Cloudflare Workers with Wrangler, dynamic imports, and 128MB memory limits.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/captjay98/livestockai --skill cloudflare-workers-captjay98
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Cloudflare Workers
Source: https://github.com/captjay98/livestockai/tree/main/.kiro/skills/cloudflare-workers
Command: npx skills add https://github.com/captjay98/livestockai --skill cloudflare-workers-captjay98

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloudflare Workers enable edge deployment but come with constraints that complicate LivestockAI integrations, such as no process.env, strict memory caps, and the need for dynamic imports.

Edge patterns and deployment considerations are documented here to help engineers implement robust, low-latency controls for livestock data across global regions.

Core Features & Use Cases

  • Patterns for edge deployments with no process.env
  • Guidance on dynamic imports and server function patterns
  • Memory management and deployment workflows

Quick Start

Set up your Cloudflare Worker project following the guidance in this skill to deploy LivestockAI edge logic.

Frequently Asked Questions about Cloudflare Workers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle environment variables in Cloudflare Workers when process.env is not available?

Cloudflare Workers do not support the Node.js process.env object. You must use global variables or the env object passed in the request handler to access environment bindings for your serverless functions.

How do I use dynamic imports in a Cloudflare Workers serverless function?

Dynamic imports in Cloudflare Workers require specific module patterns to load code on demand. This prevents loading all logic at once, helping you stay within the platform's strict 128MB memory limits.

What is the memory limit for deploying serverless functions on Cloudflare Workers?

The memory limit for Cloudflare Workers is 128MB. You must manage memory carefully by using dynamic imports and lightweight server function patterns to avoid exceeding this cap during edge deployment.

How do I deploy a Cloudflare Worker using Wrangler?

Wrangler is the required command-line tool for Cloudflare Workers deployment. You set up your project with proper module patterns, configure static assets, and use Wrangler to deploy your edge logic globally.

Can I serve static assets from a Cloudflare Workers edge function?

Yes, Cloudflare Workers can serve static assets. Proper module patterns and deployment workflows are needed to configure how static files are delivered alongside your dynamic edge logic.