forked from github/plane
58bf056ddb
* fix: login redirection * dev: log the user out when deactivating the account * dev: update redirect uris for google and github * fix: redirection url and invitation api and add redirection to god mode in nginx * dev: add reset password redirection * dev: update nginx headers * dev: fix setup sh and env example and put validation for use minio when fetching project covers * dev: stabilize dev setup * fix: handled redirection error in web, space, and admin apps * fix: resovled build errors --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
48 lines
1.9 KiB
TypeScript
48 lines
1.9 KiB
TypeScript
import type { AppProps } from "next/app";
|
|
import Head from "next/head";
|
|
import { ThemeProvider } from "next-themes";
|
|
// styles
|
|
import "@/styles/globals.css";
|
|
// contexts
|
|
import { SITE_NAME, SITE_DESCRIPTION, SITE_URL, TWITTER_USER_NAME, SITE_KEYWORDS, SITE_TITLE } from "@/constants/seo";
|
|
import { ToastContextProvider } from "@/contexts/toast.context";
|
|
// mobx store provider
|
|
import { StoreProvider } from "@/lib/store-context";
|
|
// wrappers
|
|
import { InstanceWrapper } from "@/lib/wrappers";
|
|
|
|
const prefix = "/spaces/";
|
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>{SITE_TITLE}</title>
|
|
<meta property="og:site_name" content={SITE_NAME} />
|
|
<meta property="og:title" content={SITE_TITLE} />
|
|
<meta property="og:url" content={SITE_URL} />
|
|
<meta name="description" content={SITE_DESCRIPTION} />
|
|
<meta property="og:description" content={SITE_DESCRIPTION} />
|
|
<meta name="keywords" content={SITE_KEYWORDS} />
|
|
<meta name="twitter:site" content={`@${TWITTER_USER_NAME}`} />
|
|
<link rel="apple-touch-icon" sizes="180x180" href={`${prefix}favicon/apple-touch-icon.png`} />
|
|
<link rel="icon" type="image/png" sizes="32x32" href={`${prefix}favicon/favicon-32x32.png`} />
|
|
<link rel="icon" type="image/png" sizes="16x16" href={`${prefix}favicon/favicon-16x16.png`} />
|
|
<link rel="manifest" href={`${prefix}site.webmanifest.json`} />
|
|
<link rel="shortcut icon" href={`${prefix}favicon/favicon.ico`} />
|
|
</Head>
|
|
<StoreProvider>
|
|
<ThemeProvider themes={["light", "dark"]} defaultTheme="system" enableSystem>
|
|
<ToastContextProvider>
|
|
<InstanceWrapper>
|
|
<Component {...pageProps} />
|
|
</InstanceWrapper>
|
|
</ToastContextProvider>
|
|
</ThemeProvider>
|
|
</StoreProvider>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default MyApp;
|