mirror of
https://github.com/dzeiocom/markblog.git
synced 2025-04-23 03:12:15 +00:00
24 lines
696 B
TypeScript
24 lines
696 B
TypeScript
import React from 'react'
|
|
import App from 'next/app'
|
|
|
|
class MyApp extends App {
|
|
// Only uncomment this method if you have blocking data requirements for
|
|
// every single page in your application. This disables the ability to
|
|
// perform automatic static optimization, causing every page in your app to
|
|
// be server-side rendered.
|
|
//
|
|
// static async getInitialProps(appContext) {
|
|
// // calls page's `getInitialProps` and fills `appProps.pageProps`
|
|
// const appProps = await App.getInitialProps(appContext);
|
|
//
|
|
// return { ...appProps }
|
|
// }
|
|
|
|
render() {
|
|
const { Component, pageProps } = this.props
|
|
return <Component {...pageProps} />
|
|
}
|
|
}
|
|
|
|
export default MyApp
|