Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.
中文简介正在准备中。当前显示原文说明。
Deploy Next.js to Cloudflare Workers using OpenNext adapter
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
Deploy Next.js applications to Cloudflare Workers using the @opennextjs/cloudflare adapter.
@opennextjs/cloudflare v1.19.11--dangerouslyUseUnsupportedNextVersion)namiasnodejs_compat| File | Purpose |
|---|---|
wrangler.jsonc | Cloudflare Workers configuration |
open-next.config.ts | OpenNext build configuration |
src/middleware.ts | Middleware (renamed from proxy.ts for compatibility) |
npx @opennextjs/cloudflare build
npx wrangler deploy
Deployment happens via GitHub Actions on push to main:
.github/workflows/cloudflare-deploy.ymlCLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_IDsrc/proxy.ts is not supported in newer OpenNext versionssrc/middleware.ts--dangerouslyUseUnsupportedNextVersion flag to build commandnodejs_compat compatibility flag"compatibility_flags": ["nodejs_compat"] to wrangler.jsoncglobal_fetch_strictly_public flag"compatibility_flags": ["global_fetch_strictly_public"] to wrangler.jsoncSet in Cloudflare dashboard or wrangler.jsonc:
| Variable | Purpose |
|---|---|
NEXT_RUNTIME | Set to edge |
SANITY_API_CDN | Sanity CDN URL |
SANITY_API_WRITE | Sanity write API URL |
SANITY_AUTH_TOKEN | Sanity auth token |
SANITY_REVALIDATE_SECRET | Revalidation webhook secret |
CANARY_SLACK_WEBHOOK | Canary notification webhook |
CANARY_DISCORD_WEBHOOK | Canary notification webhook |
CANARY_EMAIL | Canary notification email |
CANARY_HONEYTOKEN | Canary token value |
HONEYPOT_USERNAME | Honeypot form field |
HONEYPOT_WEBSITE | Honeypot form field |
wrangler.jsonc has correct compatibility flagssrc/middleware.ts exists (not proxy.ts)npx @opennextjs/cloudflare build还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.
中文简介正在准备中。当前显示原文说明。
Creates a new blog post document in the Sanity studio. Use when the user wants to write a blog post, publish an article, or schedule a future post.
中文简介正在准备中。当前显示原文说明。
Creates a new certification document in the Sanity studio. Use when the user wants to add a credential, certificate, or professional accreditation to the Certifications collection.
中文简介正在准备中。当前显示原文说明。
Adds a new skill MD file to the studio's skills collection. Use when the user wants to author a new step-by-step recipe for the studio's in-app Skills tool or the .agents mirror.
中文简介正在准备中。当前显示原文说明。
Creates a new project document in the Sanity studio. Use when the user wants to add a new portfolio project, a case study, or a work sample to the Projects collection.
中文简介正在准备中。当前显示原文说明。
Creates a new experience document in the Sanity studio. Use when the user wants to add a job, role, internship, or work history entry to the Experience collection.
中文简介正在准备中。当前显示原文说明。