Skip to content

Commit

Permalink
PWA: add to landing and next
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Apr 14, 2023
1 parent c4ecc23 commit 4334dfa
Show file tree
Hide file tree
Showing 10 changed files with 3,933 additions and 5,226 deletions.
5 changes: 5 additions & 0 deletions ui/landing/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,8 @@ dist
# Cypress
cypress/screenshots/
cypress/videos/

# PWA
public/sw.js
public/sw.js.map
public/workbox-*.js
5 changes: 4 additions & 1 deletion ui/landing/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* eslint-disable */

const withExportImages = require('next-export-optimize-images')
const withPWA = require('next-pwa')({
dest: 'public'
})

// You can choose which headers to add to the list
// after learning more below.
Expand Down Expand Up @@ -105,4 +108,4 @@ const nextConfig = {
},
}

module.exports = withExportImages(nextConfig)
module.exports = withPWA(withExportImages(nextConfig))

0 comments on commit 4334dfa

Please sign in to comment.