跳到正文
Philipp Schmid· @_philschmid · X·· 3 天前AI 评分51
AI 导读

Philipp Schmid 用一条提示词让 Gemini 4 Neon 优化其 Next.js 博客,24 小时内日基础设施成本从 $0.36 降至 $0.16(-55%),流量同时增长 63%。

正文

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 ⬇️

来源:Philipp Schmid · x.com