2022-08-24 20:18:42 +00:00
|
|
|
import { DefaultSeoProps, NextSeoProps } from "next-seo";
|
2021-09-22 19:52:38 +00:00
|
|
|
|
2022-11-30 21:52:56 +00:00
|
|
|
import { APP_NAME, SEO_IMG_DEFAULT, SEO_IMG_OGIMG } from "@calcom/lib/constants";
|
2022-07-01 17:19:52 +00:00
|
|
|
|
2022-08-24 20:18:42 +00:00
|
|
|
export type HeadSeoProps = {
|
|
|
|
title: string;
|
|
|
|
description: string;
|
|
|
|
siteName?: string;
|
|
|
|
name?: string;
|
|
|
|
url?: string;
|
|
|
|
username?: string;
|
|
|
|
canonical?: string;
|
|
|
|
nextSeoProps?: NextSeoProps;
|
|
|
|
};
|
2021-08-27 12:35:20 +00:00
|
|
|
|
|
|
|
const seoImages = {
|
2022-07-01 17:19:52 +00:00
|
|
|
default: SEO_IMG_DEFAULT,
|
|
|
|
ogImage: SEO_IMG_OGIMG,
|
2021-08-27 12:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const getSeoImage = (key: keyof typeof seoImages): string => {
|
|
|
|
return seoImages[key];
|
|
|
|
};
|
|
|
|
|
|
|
|
export const seoConfig: {
|
|
|
|
headSeo: Required<Pick<HeadSeoProps, "siteName">>;
|
|
|
|
defaultNextSeo: DefaultSeoProps;
|
|
|
|
} = {
|
|
|
|
headSeo: {
|
2022-11-30 21:52:56 +00:00
|
|
|
siteName: APP_NAME,
|
2021-08-27 12:35:20 +00:00
|
|
|
},
|
|
|
|
defaultNextSeo: {
|
|
|
|
twitter: {
|
2022-02-24 13:55:34 +00:00
|
|
|
handle: "@calcom",
|
|
|
|
site: "@calcom",
|
2021-08-27 12:35:20 +00:00
|
|
|
cardType: "summary_large_image",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|