You're right. There is no direct built-in replacement specifically for the "next-boost" package in Next.js 15.
To clarify:
If you're using "next-boost" for server-side caching in a Pages Router application, you would still need to continue using it or consider these alternatives:
cachified or @vercel/edge-config for edge cachingNext.js 15 has improved its built-in caching mechanisms, but for the specific server-side caching functionality that "next-boost" provides, you would still need a separate solution or package.
Since you need a replacement for next-boost's server-side caching functionality, here are practical solutions you can implement in Next.js 15:
This approach uses App Router Route Handlers with Redis for server-side caching:
For edge caching similar to next-boost, you can use Vercel's Edge Middleware:
For a more modern approach using Server Actions with caching:
For a more scalable solution using Vercel's KV and Edge Config:
To implement any of these solutions, you'll need to:
npm install @upstash/redis lru-cache
# Or for Vercel KV
npm install @vercel/kv @vercel/edge-config.env.local file:# For Upstash Redis
UPSTASH_REDIS_REST_URL=your-redis-url
UPSTASH_REDIS_REST_TOKEN=your-redis-token
# For Vercel KV
KV_URL=your-kv-url
KV_REST_API_URL=your-kv-rest-url
KV_REST_API_TOKEN=your-kv-token
KV_REST_API_READ_ONLY_TOKEN=your-read-only-tokenThese solutions provide similar functionality to next-boost but are designed to work with Next.js 15's App Router and modern caching patterns.
This generation may require the following integrations:
Please make sure to add the following environment variables to your project: