mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Ensure trailing slash is handled correctly with middleware * update source modifying * undo extra change
9 lines
257 B
JavaScript
9 lines
257 B
JavaScript
export default function App({ Component, pageProps }) {
|
|
if (!pageProps || typeof pageProps !== 'object') {
|
|
throw new Error(
|
|
`Invariant: received invalid pageProps in _app, received ${pageProps}`
|
|
)
|
|
}
|
|
return <Component {...pageProps} />
|
|
}
|