feat(cache): share public snapshots through Redis

This commit is contained in:
2026-08-28 19:53:40 +00:00 Unverified
parent 56460dcf13
commit cc822e6aef
6 changed files with 306 additions and 8 deletions
+15 -1
View File
@@ -1,7 +1,21 @@
import type { NextConfig } from "next";
import { resolve } from "node:path";
const nextConfig: NextConfig = {
/* config options here */
cacheComponents: true,
cacheHandlers: {
remote: resolve(process.cwd(), "cache-handlers/redis-handler.cjs"),
},
deploymentId: process.env.NEXT_DEPLOYMENT_ID,
output: "standalone",
experimental: {
serverActions: {
bodySizeLimit: "5mb",
},
},
turbopack: {
root: process.cwd(),
},
};
export default nextConfig;