npm next-pwa, manifest.json

This commit is contained in:
Dobromir Popov
2024-04-06 18:02:06 +03:00
parent 0717433acb
commit 16ffe5fe8f
11 changed files with 5403 additions and 260 deletions

21
pages/_document.js Normal file
View File

@ -0,0 +1,21 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
render() {
return (
<Html>
<Head>
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="/favicon.png"></link>
<meta name="theme-color" content="#e36600" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;