Skip to content

feat(docs): add wrangler - #2596

Open
mdong1909 wants to merge 3 commits into
mainfrom
docs-cf-add-wrangler
Open

feat(docs): add wrangler#2596
mdong1909 wants to merge 3 commits into
mainfrom
docs-cf-add-wrangler

Conversation

@mdong1909

Copy link
Copy Markdown
Contributor

No description provided.

@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 1a2bd81
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a97ea0f0fea5200085803d6
😎 Deploy Preview https://deploy-preview-2596--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 2, 2026

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://docs-cf-add-wrangler-viteplus-dev.voidzero-docs.workers.dev (commit 1a2bd81)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a28bac1f-viteplus-dev.voidzero-docs.workers.dev 1a2bd81 2026-09-02T09:20:36.715Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2dd54e10-viteplus-dev.voidzero-docs.workers.dev 14034df 2026-09-02T09:08:43.371Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2da4ea77-viteplus-dev.voidzero-docs.workers.dev 0f6f675 2026-09-02T08:57:16.354Z Visit the dashboard ↗

@socket-security

socket-security Bot commented Sep 2, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​wrangler@​4.127.1981009296100

View full report

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

✅ Staging deployment successful!

Preview: https://viteplus-staging.void.app/
Commit: 1a2bd81

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f6f6751cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/wrangler.jsonc
Comment on lines +7 to +9
"directory": "./.vitepress/dist",
"html_handling": "auto-trailing-slash",
"not_found_handling": "404-page"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the /vp-setup redirect in Cloudflare

When this configuration serves the docs through Cloudflare, only .vitepress/dist is uploaded, so Wrangler does not consume the repository-root netlify.toml, which currently defines the /vp-setuphttps://setup.viteplus.dev 302 redirect. Consequently, that installer endpoint returns the generated 404 page after switching traffic to this deployment. Add the redirect to the assets directory via Cloudflare's _redirects mechanism or implement an equivalent Worker route.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The committed Wrangler config hardcodes a real Cloudflare account_id, which makes deploys target a specific account and should be removed/parameterized before merging.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds Cloudflare Wrangler support to the docs workspace so the VitePress site can be built and deployed via Wrangler.

Changes:

  • Introduces a wrangler.jsonc config targeting the built VitePress output in .vitepress/dist.
  • Adds wrangler (and related lockfile/workspace adjustments) to the docs workspace.
  • Updates docs scripts and ignores Wrangler’s local state directory.
File summaries
File Description
docs/wrangler.jsonc New Wrangler configuration for deploying the built docs site as static assets.
docs/pnpm-workspace.yaml Allows workerd build scripts to satisfy pnpm’s reviewed-builds constraints for Wrangler dependencies.
docs/pnpm-lock.yaml Lockfile updates for adding wrangler and its transitive dependencies.
docs/package.json Adds Wrangler dependency and Cloudflare build/deploy scripts for docs.
docs/.gitignore Ignores .wrangler state directory generated by Wrangler.
Review details

Files not reviewed (1)

  • docs/pnpm-lock.yaml: Generated file
  • Files reviewed: 4/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/wrangler.jsonc
"$schema": "node_modules/wrangler/config-schema.json",
"name": "viteplus-dev",
"compatibility_date": "2026-09-02",
"account_id": "f8b59a295069bd81a0f256b7012f2c53",
Comment thread docs/pnpm-workspace.yaml
allowBuilds:
esbuild: false
vue-demi: false
workerd: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants