npm next-pwa, manifest.json
This commit is contained in:
21
pages/_document.js
Normal file
21
pages/_document.js
Normal 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;
|
Reference in New Issue
Block a user