Skip to content

Conversation

@acosoft
Copy link

@acosoft acosoft commented Jan 20, 2026

Summary

Fixed local development start command for Docusaurus in Workers docs.

When creating a new project with
pnpm create cloudflare@latest my-docusaurus-app --framework=docusaurus
the generated package.json does not include a dev script. To start the local development server, use pnpm run start.

Here is an example of the default scripts section in the file when the project is created:

	"scripts": {
		"docusaurus": "docusaurus",
		"start": "docusaurus start",
		"build": "docusaurus build",
		"swizzle": "docusaurus swizzle",
		"deploy": "pnpm run build && wrangler deploy",
		"clear": "docusaurus clear",
		"serve": "docusaurus serve",
		"write-translations": "docusaurus write-translations",
		"write-heading-ids": "docusaurus write-heading-ids",
		"typecheck": "tsc",
		"preview": "pnpm run build && wrangler dev"
	}

Screenshots (optional)

The change is highlighted with a green box in the screenshot. pnpm run dev is replaced with pnpm run start.

image

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants