feat: add PWA support

This commit is contained in:
jianjian.ma 2023-03-27 17:53:32 +08:00
parent bdf17fafff
commit 689b7bab26
2 changed files with 2 additions and 1 deletions

1
.eslintignore Normal file
View File

@ -0,0 +1 @@
public/serviceWorker.js

View File

@ -50,7 +50,7 @@ export default function RootLayout({
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
rel="stylesheet"
></link>
<script src="/serviceWorker.js"></script>
<script src="/serviceWorker.js" async></script>
</head>
<body>{children}</body>
</html>