mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This enhances the current parsing completed by Next.js of configuration from app segments. Previously a collection of fragile checks was used to parse the different segment configuration options which performed no validation on the inputs. This uses the `zod` library (which we already use internally) to perform validation on the configuration exported. A followup PR #70480 will add more verbose error logging around the validation errors.
17 lines
334 B
JavaScript
17 lines
334 B
JavaScript
import Comp from './Comp'
|
|
import { font1, font2 } from '../../fonts'
|
|
|
|
export default function HomePage() {
|
|
return (
|
|
<>
|
|
<p className={font1.className}>Hello world</p>
|
|
<p id="root-page" className={font2.className}>
|
|
{JSON.stringify(font2)}
|
|
</p>
|
|
<Comp />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export const runtime = 'edge'
|