Fix pwa config

This commit is contained in:
2023-07-17 11:55:06 +05:30
parent ade11a93e6
commit 69315dd50d
8 changed files with 61 additions and 50 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ const withPWA = require("next-pwa")({
const nextConfig = {}; const nextConfig = {};
module.exports = withPWA({ module.exports = withPWA({
nextConfig, ...nextConfig,
}); });
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

+32
View File
@@ -0,0 +1,32 @@
{
"theme_color": "#F7CB47",
"background_color": "#000000",
"display": "standalone",
"scope": "/",
"start_url": "/",
"name": "Multimeter speaker",
"short_name": "Multimeter speaker",
"description": "Speaker for bluetooth DMMs like Aneng-9002, BSIDE ZT-300AB, ZOYI ZT-300AB, BABATools AD-900",
"icons": [
{
"src": "/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icons/icon-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
+28 -3
View File
@@ -4,10 +4,35 @@ import { Inter } from "next/font/google";
const inter = Inter({ subsets: ["latin"] }); 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 = { export const metadata: Metadata = {
title: "Multimeter speaker", title,
description: description,
"Speaker for bluetooth DMMs like Aneng-9002, BSIDE ZT-300AB, ZOYI ZT-300AB, BABATools AD-900", 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({ export default function RootLayout({
-46
View File
@@ -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>
);
}