fix: ensure API routes and RootLayout render dynamically in production to apply color scheme and settings updates in real time
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { prisma } from '@/lib/db';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
const routes = await prisma.route.findMany({
|
||||
|
||||
Reference in New Issue
Block a user