Utwórz następną aplikację
npx create-next-app my-app
Mr J
npx create-next-app my-app
yarn create next-app
npx create-next-app@latest
npm init next-app nextjs-blog --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"
npx create-next-app your-blog-name-here
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
export default MyApp
// 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.
//
// MyApp.getInitialProps = async (appContext) => {
// // calls page's `getInitialProps` and fills `appProps.pageProps`
// const appProps = await App.getInitialProps(appContext);
//
// return { ...appProps }
// }