Skip to content

feat: OpenNextに移行してCloudflareビルドを高速化#117

Open
TakumaNakagame wants to merge 1 commit into
mainfrom
fix/cloudflare-build-perf
Open

feat: OpenNextに移行してCloudflareビルドを高速化#117
TakumaNakagame wants to merge 1 commit into
mainfrom
fix/cloudflare-build-perf

Conversation

@TakumaNakagame
Copy link
Copy Markdown
Contributor

Summary

  • @cloudflare/next-on-pages (非推奨) から @opennextjs/cloudflare に移行
  • 毎回のnpxダウンロード (約45秒) が不要になり、ビルド時間を短縮

変更内容

  • wrangler.jsoncopen-next.config.ts を追加
  • api/time を edge runtime から Node.js runtime に変更
  • build:cloudflare スクリプトを追加

Cloudflare Pages設定変更 (手動)

設定 変更前 変更後
Build command npx @cloudflare/next-on-pages@1 npm run build:cloudflare
Build output directory .vercel/output/static .open-next/assets

Test plan

  • npm run build:cloudflare が成功すること
  • Cloudflare Pagesの設定変更後、デプロイが成功すること

🤖 Generated with Claude Code

- @cloudflare/next-on-pages (非推奨) から @opennextjs/cloudflare に移行
- wrangler.jsonc と open-next.config.ts を追加
- api/time を edge runtime から Node.js runtime に変更
- build:cloudflare スクリプトを追加

これにより毎回のnpxダウンロード (約45秒) が不要になります。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jan 31, 2026

Deploying emtec-intermission with  Cloudflare Pages  Cloudflare Pages

Latest commit: 033943c
Status:🚫  Build failed.

View logs

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.

1 participant