Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Static Assets Migrate from Pages to Workers

A guide for transitioning full-stack applications and static assets from Cloudflare Pages to Cloudflare Workers, covering framework adapter updates, Wrangler configuration changes, and build directory mapping.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Static Assets Migrate from Pages to Workers

A guide for transitioning full-stack applications and static assets from Cloudflare Pages to Cloudflare Workers, covering framework adapter updates, Wrangler configuration changes, and build directory mapping.

When To Use

Use when migrating a project from Cloudflare Pages to Cloudflare Workers to ensure correct Wrangler configuration, asset directory mapping, and framework adapter selection.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-static-assets-migration-guides-migrate-from-pages-to-workflow-guide.mdA guide detailing the process of migrating static assets from Cloudflare Pages to Cloudflare Workers, including project configuration and build output adjustments.Questions about a guide detailing the process of migrating static assets from Cloudflare Pages to Cloudflare Workers, including proje...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare-.textA configuration snippet demonstrating the transition from Cloudflare Pages project settings to Cloudflare Workers static assets configuration.Exact payloads, commands, or snippets shown in A configuration snippet demonstrating the transition from Cloudflare Pages project settings to Cloudflare Workers sta...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--2.textA configuration snippet demonstrating the transition of project settings from Cloudflare Pages to Cloudflare Workers static assets.Exact payloads, commands, or snippets shown in A configuration snippet demonstrating the transition of project settings from Cloudflare Pages to Cloudflare Workers...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--3.textA wrangler.toml configuration example demonstrating the assets directory setup for migrating from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets directory setup for migrating from Cloudflare Pages to...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--4.textA toml configuration snippet demonstrating the assets directory and compatibility date settings for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A toml configuration snippet demonstrating the assets directory and compatibility date settings for migrating from Pa...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--5.textA wrangler.toml configuration example demonstrating how to define the assets directory and notfoundhandling for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating how to define the assets directory and notfoundhandling for migra...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--6.textA toml configuration example demonstrating the assets directory and notfoundhandling settings for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A toml configuration example demonstrating the assets directory and notfoundhandling settings for migrating from Page...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--7.textA wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--8.textA TOML configuration snippet demonstrating the [assets] table settings for migrating static assets from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A TOML configuration snippet demonstrating the [assets] table settings for migrating static assets from Cloudflare Pa...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--9.textA text file demonstrating a .gitignore configuration for migrating static assets from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A text file demonstrating a .gitignore configuration for migrating static assets from Cloudflare Pages to Workers.
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--10.textA sample _worker.js file demonstrating the implementation of static assets within a Cloudflare Worker as part of a migration from Pages.Exact payloads, commands, or snippets shown in A sample worker.js file demonstrating the implementation of static assets within a Cloudflare Worker as part of a mig...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--11.textA wrangler.toml configuration example demonstrating the assets directory mapping for migrating from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets directory mapping for migrating from Cloudflare Pages...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--12.textA wrangler.toml configuration example demonstrating the assets directory and compatibility date settings for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets directory and compatibility date settings for migratin...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--13.textA command line instruction using npx wrangler to build Pages functions into a specific directory for Workers static assets migration.Exact payloads, commands, or snippets shown in A command line instruction using npx wrangler to build Pages functions into a specific directory for Workers static a...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--14.textA command line instruction using wrangler to build Cloudflare Pages functions into a specific directory for Workers static assets migration.Exact payloads, commands, or snippets shown in A command line instruction using wrangler to build Cloudflare Pages functions into a specific directory for Workers s...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--15.textA command line instruction using pnpm wrangler to build Pages functions into a specific worker output directory.Exact payloads, commands, or snippets shown in A command line instruction using pnpm wrangler to build Pages functions into a specific worker output directory.
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--16.textA wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--17.textA wrangler.toml configuration example demonstrating the assets directory and compatibility date settings for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets directory and compatibility date settings for migratin...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--18.textA wrangler.toml configuration example demonstrating the assets property and runworkerfirst setting for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets property and runworkerfirst setting for migrating from...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--19.textA toml configuration snippet demonstrating the [assets] table settings for migrating static assets from Pages to Workers.Exact payloads, commands, or snippets shown in A toml configuration snippet demonstrating the [assets] table settings for migrating static assets from Pages to Work...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--20.textA JavaScript code example demonstrating the implementation of a WorkerEntrypoint for migrating static assets from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating the implementation of a WorkerEntrypoint for migrating static assets from Clo...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--21.textA TypeScript code example demonstrating the implementation of a WorkerEntrypoint for migrating static assets from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating the implementation of a WorkerEntrypoint for migrating static assets from Clo...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--22.textA wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--23.textA sample wrangler.toml configuration demonstrating the assets directory and compatibility date settings for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A sample wrangler.toml configuration demonstrating the assets directory and compatibility date settings for migrating...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--24.textA wrangler.toml configuration example demonstrating the assets binding and directory settings required to migrate from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets binding and directory settings required to migrate fro...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--25.textA wrangler.toml configuration example demonstrating the assets binding and directory setup for migrating from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets binding and directory setup for migrating from Pages t...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--26.textA wrangler.toml configuration example demonstrating the placement and assets settings required to migrate static assets from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the placement and assets settings required to migrate static asse...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--27.textA toml configuration file demonstrating the placement and assets settings required to migrate static assets from Pages to Workers.Exact payloads, commands, or snippets shown in A toml configuration file demonstrating the placement and assets settings required to migrate static assets from Page...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--28.textA wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the assets property setup for migrating from Cloudflare Pages to...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--29.textA wrangler.toml configuration example demonstrating the setup for migrating static assets from Cloudflare Pages to Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration example demonstrating the setup for migrating static assets from Cloudflare Pages to Cl...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--30.textA wrangler.toml configuration file demonstrating the settings required to migrate static assets from Cloudflare Pages to Cloudflare Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the settings required to migrate static assets from Cloudflare Pages...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--31.textA wrangler.toml configuration file demonstrating the compatibility date and main entry point settings required for migrating static assets from Pages to Workers.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the compatibility date and main entry point settings required for mi...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--32.textA text snippet demonstrating the npx wrangler command used to delete a Cloudflare Pages project during the static assets migration process.Exact payloads, commands, or snippets shown in A text snippet demonstrating the npx wrangler command used to delete a Cloudflare Pages project during the static ass...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--33.textA text snippet demonstrating the wrangler command used to delete a Cloudflare Pages project during the static assets migration process.Exact payloads, commands, or snippets shown in A text snippet demonstrating the wrangler command used to delete a Cloudflare Pages project during the static assets...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--34.textA text snippet demonstrating the pnpm wrangler command used to delete a Cloudflare Pages project during static asset migration.Exact payloads, commands, or snippets shown in A text snippet demonstrating the pnpm wrangler command used to delete a Cloudflare Pages project during static asset...
examples/workers-static-assets-migration-guides-migrate-from-pages-to-cloudflare--35.textA text-based guide outlining the steps to migrate static assets from Cloudflare Pages to Cloudflare Workers.Exact payloads, commands, or snippets shown in A text-based guide outlining the steps to migrate static assets from Cloudflare Pages to Cloudflare Workers.

What This Skill Covers

  • You can deploy full-stack applications, including front-end static assets and back-end APIs, as well as server-side rendered pages (SSR), with Cloudflare Wor...
  • Main sections: Migration, Frameworks, Project configuration, Build output directory, Serving behavior.

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/static-assets/migration-guides/migrate-from-pages