fix: Force dynamic rendering and improve error handling
- Add 'force-dynamic' to app/page.tsx to ensure daily puzzle is generated on every request - Improve error message in Game component when no puzzle is available - Add logging to getDailyPuzzle for debugging
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import Game from '@/components/Game';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
|
||||
// PrismaClient is attached to the `global` object in development to prevent
|
||||
|
||||
Reference in New Issue
Block a user