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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-static-assets-migration-guides-migrate-from-pages-to-workflow-guide.md | A 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-.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
