網站流量增加時,載入變慢、雲端費用變高,可能得花不少時間逐項調整。
- Philipp Schmid 用一句提示詞,讓 Gemini 4 Neon 分 13 次修改他的 Next.js 部落格,並以桌機和手機截圖檢查畫面是否改變。上線 24 小時後,流量增加 63%,手機主要內容載入時間從 912ms 降到 380ms,每日基礎設施費用從 $0.36 降到 $0.16。
- 程式碼也變少。這是單一部落格的實測結果,作者表示 27 張截圖都符合畫素比對。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
作者公開 Next.js 部落格改版前後的實測數字,也交代 AI 助理如何分多次修改並用截圖確認外觀,呈現速度與成本的變化。
I pointed Gemini 4 Neon at my Next.js blog and overnight it reduced my daily cost by 50% with one prompt “Make it faster, cheaper on @vercel , modern web standards and don't change how it looks.”
Across 13 autonomous runs, it converted accidentally dynamic routes to 100% static/SSG, built a cached Sharp AVIF/WebP + OG image pipeline, scoped CSS/JS per route, and added Speculation Rules—verifying every run with pixel-level desktop & mobile screenshots.
Live 24h production results (at +63% higher traffic):
- Mobile LCP: 912ms → 380ms (2.4× faster)
- Daily infra cost: \$0.36 → \$0.16 (-55%)
- Compute: 0.94 → 0.01 GB-h/day (-99%)
- Client JS: 237KB → 142KB (-40%)
- CSS: 81KB → 37KB (-54%)
- Visual diff: 27/27 pixel-matched screenshots
Prompt in thread ⬇️