chore: Adds deprecated-imports-next-router (#14486)

This commit is contained in:
Omar López authored and GitHub committed 2024-04-16 11:46:45 +01:00
1 parent 3084013269
commit f2eebe95bd
9 files changed
+46 -13

No files matched your search

+1 -8
View File
@@ -1,5 +1,4 @@
import type { DefaultSeoProps, NextSeoProps } from "next-seo";
import type { Router } from "next/router";
import { APP_NAME, SEO_IMG_DEFAULT, SEO_IMG_OGIMG } from "@calcom/lib/constants";
@@ -47,12 +46,6 @@ export const seoConfig: {
* @param path NextJS' useRouter().asPath
* @returns
*/
export const buildCanonical = ({
origin,
path,
}: {
origin: Location["origin"];
path: Router["asPath"] | null;
}) => {
export const buildCanonical = ({ origin, path }: { origin: Location["origin"]; path: string | null }) => {
return `${origin}${path === "/" ? "" : path}`.split("?")[0];
};