Fix Next.js static rendering blocking PUT requests
This commit is contained in:
parent
782147435a
commit
f02e24c025
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in New Issue