Skip to content

Commit

Permalink
feat: enable pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Mar 22, 2023
1 parent a5e11c1 commit e99df8f
Show file tree
Hide file tree
Showing 9 changed files with 2,163 additions and 312 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ next-env.d.ts

.idea/
.vscode/

# pwa
**/public/precache.*.*.js
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/fallback-*.js
**/public/precache.*.*.js.map
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const withPWA = require("next-pwa")({
dest: "public",
});

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};

module.exports = nextConfig;
module.exports = withPWA(nextConfig);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"@radix-ui/react-switch": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.3",
"@radix-ui/react-toast": "^1.1.3",
"@rich-data/viewer": "^2.2.4",
"@types/lodash.debounce": "^4.0.7",
"@types/node": "18.15.3",
"@types/react": "18.0.28",
Expand All @@ -68,6 +67,7 @@
"lodash.debounce": "^4.0.8",
"lz-string": "^1.5.0",
"next": "13.2.4",
"next-pwa": "^5.6.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-json-view": "^1.21.3",
Expand Down
Loading

0 comments on commit e99df8f

Please sign in to comment.