mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This takes the `layerAssets` property from the previous PR and actually renders it, replacing the previous style handling. This ensures that when multiple page segments are rendered on screen, all of their associated CSS files are loaded. The existing `findHeadInCache` method only ever returns a single head node, which means it’d miss stylesheets. Fixes #59308 Fixes #63465
16 lines
294 B
TypeScript
16 lines
294 B
TypeScript
import Link from 'next/link'
|
|
import styles from './style.module.css'
|
|
|
|
export const metadata = {
|
|
title: 'Home Page',
|
|
}
|
|
|
|
export default function Home() {
|
|
return (
|
|
<main id="main" className={styles.bgBlue}>
|
|
<p>Main</p>
|
|
<Link href="/nested">Nested Page</Link>
|
|
</main>
|
|
)
|
|
}
|