Buckets:
| import App from 'next/app' | |
| class MyApp extends App { | |
| static async getInitialProps(ctx) { | |
| const { req, query, pathname, asPath } = ctx.ctx | |
| let pageProps = {} | |
| if (ctx.Component.getInitialProps) { | |
| pageProps = await ctx.Component.getInitialProps(ctx.ctx) | |
| } | |
| return { | |
| appProps: { | |
| url: (req || {}).url, | |
| query, | |
| pathname, | |
| asPath, | |
| }, | |
| pageProps, | |
| } | |
| } | |
| render() { | |
| const { Component, pageProps, appProps } = this.props | |
| return <Component {...pageProps} appProps={appProps} /> | |
| } | |
| } | |
| export default MyApp | |
Xet Storage Details
- Size:
- 586 Bytes
- Xet hash:
- a140e8ded7ee093098ae26f2708831449f2a2c2578fd2c347cd9d5d067ca9663
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.