- Add 'force-dynamic' export to API routes using cookies/searchParams - Add 'force-dynamic' export to page components using dynamic features - Create proper error pages without i18n complexity - Fix "Dynamic server usage" errors during static generation Routes now properly marked as dynamic will render at request time instead of failing during build-time static generation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
No EOL
789 B
TypeScript
29 lines
No EOL
789 B
TypeScript
import { Metadata } from 'next'
|
|
|
|
// Force dynamic rendering to avoid issues
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Page not found / granblue.team',
|
|
description: 'The page you were looking for could not be found'
|
|
}
|
|
|
|
export default function NotFound() {
|
|
return (
|
|
<div className="error-container">
|
|
<div className="error-content">
|
|
<h1>404</h1>
|
|
<h2>Page Not Found</h2>
|
|
<p>The page you're looking for doesn't exist.</p>
|
|
<div className="error-actions">
|
|
<a href="/new" className="button primary">
|
|
Create a new party
|
|
</a>
|
|
<a href="/teams" className="button secondary">
|
|
Browse teams
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
} |