Fix Next.js static rendering blocking PUT requests

This commit is contained in:
Antigravity 2026-06-10 21:33:10 -04:00
parent 782147435a
commit f02e24c025
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
import { NextResponse } from 'next/server';
import Redis from 'ioredis';
export const dynamic = 'force-dynamic';
// Use env var or default to the in-cluster Redis service
const redisHost = process.env.REDIS_HOST || 'redis.platform-data.svc.cluster.local';
const redis = new Redis({ host: redisHost, port: 6379, maxRetriesPerRequest: 1 });