// app/beach/page.tsx
import { getConfig } from '../lib/config';
import BeachClientPage from './BeachClientPage';

export const dynamic = 'force-dynamic';

export const metadata = {
    title: 'Beachturnering',
};

export default async function BeachPage() {
    const config = await getConfig();
    
    const turnstileSiteKey = process.env.TURNSTILE_SITE_KEY || '';

    return <BeachClientPage config={config} turnstileSiteKey={turnstileSiteKey} />;
}
