Marketing sites on Vercel
Optimize hero and CMS images while keeping App Router hosting on Vercel.
Route next/image through Cache Rocket, optionally CDN `/_next/static`, and warm URLs after every deploy.
Cache Rocket for Next.js sits beside your existing host. Keep SSR and HTML on Vercel, Netlify, Cloudflare Pages, or self-hosted Node. Install @cacherocket/next to send next/image through img.cacherocket.com—and optionally serve hashed /_next/static from Managed CDN—plus warm critical URLs when you ship.
withCacheRocket wraps your Next.js config and wires a custom image loader. Absolute image URLs—or relative /public paths when you set an asset origin—are rewritten to path-based transform URLs on img.cacherocket.com so the edge can cache each size and format reliably.
Hosting, SSR, and your existing Data Cache stay where they are. Cache Rocket optimizes and delivers images, can CDN hashed static assets, and can warm page URLs after deploy.
Enable Static asset CDN on Account → Next.js to set Next.js assetPrefix to your tenant path on assets.cacherocket.com. After next build, run npx cacherocket-next upload-static so OVH + Bunny serve /_next/static worldwide.
This is separate from CacheRocket.com’s own site CDN config. Customer sites use CACHEROCKET_STATIC_CDN_URL from the dashboard.
Deploys wipe edge and framework caches. Use onVercelDeploy() in a Route Handler, or call warm and purge from CI, so the first real visitor after a release does not pay the cold-start cost.
The same image-opt and CDN bandwidth meters power WordPress Managed CDN when you use both—so plan quotas stay predictable in one place.
In Account → Next.js, create a site, copy the site token and API keys, and set your image host allowlist.
Add the package, wrap next.config with withCacheRocket, and set env vars on Vercel or locally.
Use next/image as usual. Optionally enable static CDN and upload after build. Point a deploy webhook at onVercelDeploy() or your public warm webhook.
Optimize hero and CMS images while keeping App Router hosting on Vercel.
CDN /_next/static via Managed CDN when you are not on Vercel’s edge network.
Combine image CDN with post-deploy warming so releases never greet users with cold routes.
Create a free Cache Rocket account, verify a hostname, and turn this capability on for your site or API.