Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Migrating from wrangler dev

A guide for transitioning from wrangler dev to the Cloudflare Vite plugin, covering configuration file changes, environment variable handling, and mapping deprecated Wrangler options to Vite equivalents.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Migrating from wrangler dev

A guide for transitioning from wrangler dev to the Cloudflare Vite plugin, covering configuration file changes, environment variable handling, and mapping deprecated Wrangler options to Vite equivalents.

When To Use

Use when migrating a Cloudflare Worker project from a standard Wrangler development workflow to a Vite-based build system and needing to map configuration settings or environment variables.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-vite-plugin-migrating-from-wrangler-dev-workflow-guide.mdA guide detailing the differences and configuration changes required when migrating from wrangler dev to the Cloudflare Workers Vite plugin.Questions about a guide detailing the differences and configuration changes required when migrating from wrangler dev to the Cloudfla...

What This Skill Covers

  • In most cases, migrating from wrangler dev is straightforward and you can follow the instructions in Get started. There are a few key differences to highlight:
  • Main sections: Input and output Worker config files, Cloudflare Environments, Redundant fields in the Wrangler config file, Not applicable, Not supported.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/vite-plugin/reference/migrating-from-wrangler-dev