diff --git a/next.config.js b/next.config.js index 5cfd25d..aa01f5c 100644 --- a/next.config.js +++ b/next.config.js @@ -6,5 +6,5 @@ const withPWA = require("next-pwa")({ const nextConfig = {}; module.exports = withPWA({ - nextConfig, + ...nextConfig, }); diff --git a/public/icons/icon-192x192.png b/public/icons/icon-192x192.png new file mode 100644 index 0000000..b4e562c Binary files /dev/null and b/public/icons/icon-192x192.png differ diff --git a/public/icons/icon-256x256.png b/public/icons/icon-256x256.png new file mode 100644 index 0000000..0500541 Binary files /dev/null and b/public/icons/icon-256x256.png differ diff --git a/public/icons/icon-384x384.png b/public/icons/icon-384x384.png new file mode 100644 index 0000000..6643128 Binary files /dev/null and b/public/icons/icon-384x384.png differ diff --git a/public/icons/icon-512x512.png b/public/icons/icon-512x512.png new file mode 100644 index 0000000..5403c64 Binary files /dev/null and b/public/icons/icon-512x512.png differ diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..3fad820 --- /dev/null +++ b/public/manifest.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0a4105c..72d727b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -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({ diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx deleted file mode 100644 index 178bf33..0000000 --- a/src/pages/_document.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { Html, Head, Main, NextScript } from "next/document"; - -export default function Document() { - return ( - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - ); -}