mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Follow-up to https://github.com/vercel/next.js/pull/48870 this exposes WebSocket for the Next.js runtime so we don't have divergence in APIs as discussed with @cramforce
12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
export function generateStaticParams() {
|
|
if (typeof WebSocket === 'undefined') {
|
|
throw new Error('missing WebSocket constructor!!')
|
|
}
|
|
|
|
return [{ lang: 'en' }, { lang: 'fr' }]
|
|
}
|
|
|
|
export default function Layout({ children }) {
|
|
return <>{children}</>
|
|
}
|