cal.pub0.org/pages/_app.tsx

23 lines
643 B
TypeScript
Raw Normal View History

2021-07-07 10:43:13 +00:00
import "../styles/globals.css";
import AppProviders from "@lib/app-providers";
import type { AppProps as NextAppProps } from "next/app";
import { DefaultSeo } from "next-seo";
import { seoConfig } from "@lib/config/next-seo.config";
2021-03-10 10:02:39 +00:00
// Workaround for https://github.com/vercel/next.js/issues/8592
export type AppProps = NextAppProps & {
/** Will be defined only is there was an error */
err?: Error;
};
function MyApp({ Component, pageProps, err }: AppProps) {
2021-03-24 15:03:04 +00:00
return (
<AppProviders>
<DefaultSeo {...seoConfig.defaultNextSeo} />
<Component {...pageProps} err={err} />
</AppProviders>
2021-04-11 17:12:18 +00:00
);
2021-03-10 10:02:39 +00:00
}
2021-04-11 17:12:18 +00:00
export default MyApp;