Skip to content

Commit 6cf8925

Browse files
Make the app Progressive Web Application (PWA) - closes #2
1 parent f2df292 commit 6cf8925

17 files changed

+5918
-450
lines changed

app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type RootLayoutProps = {
2121
export default function RootLayout({ children }: RootLayoutProps) {
2222
return (
2323
<html lang="en">
24+
<link rel="manifest" href="/manifest.json" />
2425
<body className="bg-slate-900">
2526
<ApolloProvider>
2627
<TopNav />

next.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ const nextConfig = {
1414
output: "standalone",
1515
};
1616

17-
module.exports = nextConfig;
17+
const withPWA = require("next-pwa")({
18+
dest: "public",
19+
});
20+
21+
module.exports = withPWA({
22+
nextConfig,
23+
});

package-lock.json

Lines changed: 3097 additions & 449 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"formik": "^2.4.5",
3434
"graphql": "^16.6.0",
3535
"next": "^14.1.1",
36+
"next-pwa": "^5.6.0",
3637
"react": "^18.2.0",
3738
"react-dom": "^18.2.0",
3839
"react-github-btn": "^1.4.0",

public/icons/icon-128x128.png

17.5 KB
Loading

public/icons/icon-144x144.png

18.8 KB
Loading

public/icons/icon-152x152.png

19.8 KB
Loading

public/icons/icon-192x192.png

25.4 KB
Loading

public/icons/icon-384x384.png

66.2 KB
Loading

public/icons/icon-512x512.png

96.3 KB
Loading

0 commit comments

Comments
 (0)