2021-07-07 10:43:13 +00:00
|
|
|
import "../styles/globals.css";
|
2021-08-27 12:11:24 +00:00
|
|
|
import AppProviders from "@lib/app-providers";
|
|
|
|
import type { AppProps as NextAppProps } from "next/app";
|
2021-08-27 12:35:20 +00:00
|
|
|
import { DefaultSeo } from "next-seo";
|
|
|
|
import { seoConfig } from "@lib/config/next-seo.config";
|
2021-03-10 10:02:39 +00:00
|
|
|
|
2021-09-09 13:51:06 +00:00
|
|
|
// Workaround for https://github.com/vercel/next.js/issues/8592
|
2021-08-27 12:11:24 +00:00
|
|
|
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 (
|
2021-08-27 12:11:24 +00:00
|
|
|
<AppProviders>
|
2021-08-27 12:35:20 +00:00
|
|
|
<DefaultSeo {...seoConfig.defaultNextSeo} />
|
2021-08-27 12:11:24 +00:00
|
|
|
<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;
|