cloudflare debug
2026/6/9小于 1 分钟
cloudflare debug
1. 本地调试 Workers
- 更新 wrangler
pnpm install -g wrangler@latest- 调试命令
npx wrangler dev --remote- wrangle session 过期
如果出现 [ERROR] Could not create remote preview session on your account 的错误,运行以下命令,重新登录:
npx wrangler logout
npx wrangler login
# 删除缓存
rm -rf ./.wrangler
rm -rf ./node_modules