Skip to content

Commit

Permalink
fixup! feat(web): open graph
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Nov 20, 2024
1 parent a539cdc commit 9d90442
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,40 @@ import type { Metadata } from "next";
import "./globals.css";
import { notoSans } from "./fonts";

const WEB_URL = new URL("https://metronow.dev");

const appleAppLink = {
app_name: "metro-now",
app_store_id: "6504659402",
url: "https://apps.apple.com/cz/app/metro-now/id6504659402",
} as const;

export const metadata: Metadata = {
title: "Metro Now",
description: "Prague public transport app",
category: "Public transport",
keywords: ["prague", "praha", "public transport", "metro", "tram", "bus"],
metadataBase: WEB_URL,
openGraph: {
url: "https://metronow.dev",
url: WEB_URL,
type: "website",
},
appLinks: {
ios: {
...appleAppLink,
url: `${appleAppLink.url}?platform=iphone`,
},
iphone: {
...appleAppLink,
url: `${appleAppLink.url}?platform=iphone`,
},
ipad: {
...appleAppLink,
url: `${appleAppLink.url}?platform=ipad`,
},
web: {
url: WEB_URL,
},
},
};

Expand Down

0 comments on commit 9d90442

Please sign in to comment.