mirror of
https://github.com/bendtherules/multimeter-connect-web.git
synced 2026-08-18 13:52:26 +00:00
Fix pwa config
This commit is contained in:
+28
-3
@@ -4,10 +4,35 @@ import { Inter } from "next/font/google";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
const PRODUCTION_URL = "https://bluetooth-speaker.netlify.app";
|
||||
const DEPLOY_URL = process.env.DEPLOY_URL || PRODUCTION_URL;
|
||||
|
||||
const title = "Multimeter speaker";
|
||||
const description =
|
||||
"Speaker for bluetooth DMMs like Aneng-9002, BSIDE ZT-300AB, ZOYI ZT-300AB, BABATools AD-900";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Multimeter speaker",
|
||||
description:
|
||||
"Speaker for bluetooth DMMs like Aneng-9002, BSIDE ZT-300AB, ZOYI ZT-300AB, BABATools AD-900",
|
||||
title,
|
||||
description,
|
||||
metadataBase: new URL(DEPLOY_URL),
|
||||
formatDetection: {
|
||||
telephone: false,
|
||||
},
|
||||
openGraph: {
|
||||
title,
|
||||
description,
|
||||
url: PRODUCTION_URL,
|
||||
siteName: title,
|
||||
locale: "en_US",
|
||||
type: "website",
|
||||
images: "/icon.png",
|
||||
},
|
||||
themeColor: "#F7CB47",
|
||||
manifest: "/manifest.json",
|
||||
category: "technology",
|
||||
other: {
|
||||
"mobile-web-app-capable": "yes",
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
import { Html, Head, Main, NextScript } from "next/document";
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head>
|
||||
<meta name="application-name" content="Multimeter speaker" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Speaker for bluetooth DMMs like Aneng-9002, BSIDE ZT-300AB, ZOYI ZT-300AB, BABATools AD-900"
|
||||
/>
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="msapplication-config" content="/icons/browserconfig.xml" />
|
||||
<meta name="msapplication-TileColor" content="#F7CB47" />
|
||||
<meta name="msapplication-tap-highlight" content="no" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
|
||||
<link rel="icon" href="/favicon.ico" sizes="any" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
|
||||
<link rel="shortcut icon" href="/icon.png" />
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Multimeter speaker" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Speaker for bluetooth DMMs like Aneng-9002, BSIDE ZT-300AB, ZOYI ZT-300AB, BABATools AD-900"
|
||||
/>
|
||||
<meta property="og:site_name" content="Multimeter speaker" />
|
||||
<meta
|
||||
property="og:url"
|
||||
content="https://bluetooth-speaker.netlify.app/"
|
||||
/>
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://bluetooth-speaker.netlify.app/icon.png"
|
||||
/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user