Skip to content

Commit 9365e94

Browse files
add: create _app.js
1 parent bcfe5e4 commit 9365e94

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

components/Layout.js

Whitespace-only changes.

pages/_app.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// import App from 'next/app'
2+
import "../styles/globals.css";
3+
4+
function MyApp({ Component, pageProps }) {
5+
return <Component {...pageProps} />;
6+
}
7+
8+
// Only uncomment this method if you have blocking data requirements for
9+
// every single page in your application. This disables the ability to
10+
// perform automatic static optimization, causing every page in your app to
11+
// be server-side rendered.
12+
//
13+
// MyApp.getInitialProps = async (appContext) => {
14+
// // calls page's `getInitialProps` and fills `appProps.pageProps`
15+
// const appProps = await App.getInitialProps(appContext);
16+
//
17+
// return { ...appProps }
18+
// }
19+
20+
export default MyApp;

styles/Layout.module.css

Whitespace-only changes.

styles/globals.css

Whitespace-only changes.

0 commit comments

Comments
 (0)