Skip to content

Commit

Permalink
Merge pull request #44 from a1603169/implement-pwa
Browse files Browse the repository at this point in the history
Config setting for pwa
  • Loading branch information
a1603169 authored Mar 4, 2024
2 parents 35e6272 + 6819942 commit 2df2fa0
Show file tree
Hide file tree
Showing 5 changed files with 10,697 additions and 4,999 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# next-pwa
**/public/sw.js
**/public/sw.js.map
**/public/workbox-*.js
**/public/workbox-*.js.map

# dependencies
/node_modules
/.pnp
Expand Down
10 changes: 9 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",

})

const nextConfig = {
reactStrictMode: false,
env: {
NEXT_PUBLIC_GA_ID: process.env.GA_TRACKING_ID,
},
}

module.exports = nextConfig;
module.exports = withPWA(nextConfig);
Loading

0 comments on commit 2df2fa0

Please sign in to comment.