docs: add Wrangler autoconfig documentation#28221
docs: add Wrangler autoconfig documentation#28221yomna-shousha wants to merge 16 commits intoproductionfrom
Conversation
- Add new page: Deploy an existing project (autoconfig.mdx) - Add new page: Automatic pull requests (automatic-prs.mdx) - Update Workers Builds pages with autoconfig integration - Add tip callouts to 13 framework guides linking to autoconfig - Update wrangler commands page with autoconfig and --yes flag - Add automatic PR screenshot image
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
/bonk review this and ensure all code examples are valid |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
/bonk review this PR using the docs agent guidelines |
PR Review: Wrangler Autoconfig DocumentationOverall AssessmentThis is a well-structured PR that adds documentation for a new feature across the right set of pages. The content is clear, the cross-linking is thorough, and the framework guide tips are consistently applied. Below are the findings organized by severity. Blocking Issues1. The PR description already calls this out, but for completeness: two files contain
Style Guide Violations (Should Fix)2. Contractions -- the style guide says "do not use contractions" Three instances found:
3. Unused imports in import { Details, Render } from "~/components";Neither Suggestions (Non-blocking)4. Tip placement consistency across framework guides The tips are well-written and consistent in messaging. However, the placement varies slightly:
This is reasonable given each page has different structure, but it is worth noting the inconsistency in case a reviewer prefers uniformity. 5. Astro/Next.js/SvelteKit tips include framework-specific adapter details, but most others do not For example:
This is actually a nice touch that adds specificity where relevant. No change needed, just calling it out as a deliberate pattern. 6. This is fine as a representative example, but consider whether the date should be updated to something more current (e.g., 7. Changelog uses em dash (
This is stylistically acceptable in changelog entries (which are more blog-like), so not a strict issue. What Looks Good
SummaryThe PR is well-written and nearly ready to merge. The three items to address before merge:
|
- Remove unused imports (Details, Render) from autoconfig.mdx - Fix contractions: don't → do not, doesn't → does not - Use WranglerConfig component with $today for compatibility_date - Replace em dash with period in changelog
| ```sh | ||
| npx wrangler deploy | ||
| ``` |
There was a problem hiding this comment.
We should ideally use the PackageManagers component instead of an sh block (so that it can show the various different package manager alternatives as well).
Like this for example:
Line 198 in f48edca
This applies to all the similar blocks below
|
/bonk use the PackageManagers component instead of an sh block for all blocks in this pull request |
|
Resource not accessible by integration - https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment |
|
Bonk workflow failed. Check the logs for details. |
|
Replaced all 4
Also added |
…re image - Replace inline `npx wrangler deploy` with PackageManagers component in 13 framework guide tip callouts - Restore automatic-pr.png image that was accidentally removed
…rkspaces - Clarify that multiple frameworks error only occurs in Workers Builds dashboard - Add links to root directory and monorepo setup documentation - Simplify workspaces section wording
- Add Next.js caching section explaining automatic R2 cache setup - Update frameworks table to reference R2 caching for Next.js - Update Next.js guide tip to mention automatic R2 caching
| | [Angular](/workers/framework-guides/web-apps/more-web-frameworks/angular/) | | | | ||
| | [Analog](/workers/framework-guides/web-apps/more-web-frameworks/analog/) | Built-in Cloudflare preset | | | ||
| | [Vite](/workers/vite-plugin/) | Cloudflare Vite plugin | | | ||
| | [Hono](/workers/framework-guides/web-apps/more-web-frameworks/hono/) | | | |
There was a problem hiding this comment.
Hono is not supported 😓
|
|
||
| <PackageManagers type="exec" pkg="wrangler" args="deploy" /> | ||
|
|
||
| Wrangler will automatically configure your project. Refer to [Deploy an existing project](/workers/framework-guides/automatic-configuration/) for details. |
There was a problem hiding this comment.
Hono is not supported by autoconfig 😓
|
|
||
| ### Framework not detected | ||
|
|
||
| If your framework is not detected, ensure your `package.json` includes the framework as a dependency. If the framework is not in the [supported list](#supported-frameworks), you'll need to manually configure your project. |
There was a problem hiding this comment.
Autoconfig can also work with frameworks that we don't officially support, for example SPAs such as react (vite-based), so possibly we should either clarify that in the supported list or be a bit more vague here.
| If your framework is not detected, ensure your `package.json` includes the framework as a dependency. If the framework is not in the [supported list](#supported-frameworks), you'll need to manually configure your project. | |
| If your framework is not detected, ensure your `package.json` includes the framework as a dependency. If the framework is not in the [supported list](#supported-frameworks), you might need to manually configure your project. |
- Create AutoconfigDiagram.astro component with auto-play looping animation - Add diagram and 'Automatic configuration' callouts to all 12 framework pages - Export component from src/components/index.ts
Summary
This PR adds documentation for Wrangler's automatic project configuration feature, which allows users to deploy existing framework projects to Cloudflare Workers with a single command.
New pages
Updated pages
deployandsetup, plus--yesflag documentationChangelog
Assets
TODO before merging
TODO_VERSIONinsrc/content/docs/workers/framework-guides/autoconfig.mdxwith the actual Wrangler version numberTODO_VERSIONinsrc/content/changelog/workers/2026-02-10-wrangler-autoconfig-ga.mdxwith the actual Wrangler version number