chore: add viewport / favicon metadata (#18177)
* fix favicon name * add viewport metadata for PageWrapperAppDir * fix * fix * refactor
This commit is contained in:
1 parent
3d26332443
commit
d12fc78fea
2 files changed
+9
-9
No files matched your search
@@ -6,16 +6,10 @@ import { APP_NAME } from "@calcom/lib/constants";
|
|||||||
import LegacyPage from "~/maintenance/maintenance-view";
|
import LegacyPage from "~/maintenance/maintenance-view";
|
||||||
|
|
||||||
export const generateMetadata = async () => {
|
export const generateMetadata = async () => {
|
||||||
const metadata = await _generateMetadata(
|
return await _generateMetadata(
|
||||||
(t) => t("under_maintenance"),
|
(t) => t("under_maintenance"),
|
||||||
(t) => t("under_maintenance_description", { appName: APP_NAME })
|
(t) => t("under_maintenance_description", { appName: APP_NAME })
|
||||||
);
|
);
|
||||||
return {
|
|
||||||
...metadata,
|
|
||||||
icons: {
|
|
||||||
icon: "/favicon.ico",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default WithLayout({ getLayout: null, Page: LegacyPage })<"P">;
|
export default WithLayout({ getLayout: null, Page: LegacyPage })<"P">;
|
||||||
@@ -20,7 +20,7 @@ export type PageMetadataRecipe = Readonly<{
|
|||||||
|
|
||||||
export const prepareRootMetadata = (recipe: RootMetadataRecipe): Metadata => ({
|
export const prepareRootMetadata = (recipe: RootMetadataRecipe): Metadata => ({
|
||||||
icons: {
|
icons: {
|
||||||
icon: "/favicon.icon",
|
icon: "/favicon.ico",
|
||||||
apple: "/api/logo?type=apple-touch-icon",
|
apple: "/api/logo?type=apple-touch-icon",
|
||||||
other: [
|
other: [
|
||||||
{
|
{
|
||||||
@@ -41,7 +41,13 @@ export const prepareRootMetadata = (recipe: RootMetadataRecipe): Metadata => ({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
manifest: "/site.webmanifest",
|
manifest: "/site.webmanifest",
|
||||||
viewport: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",
|
viewport: {
|
||||||
|
width: "device-width",
|
||||||
|
initialScale: 1.0,
|
||||||
|
maximumScale: 1.0,
|
||||||
|
userScalable: false,
|
||||||
|
viewportFit: "cover",
|
||||||
|
},
|
||||||
robots: recipe.robots,
|
robots: recipe.robots,
|
||||||
other: {
|
other: {
|
||||||
"application-TileColor": "#ff0000",
|
"application-TileColor": "#ff0000",
|
||||||
|
|||||||
Reference in new issue
Block a user