Skip to content

Commit

Permalink
Update next pwa version in pwa example (#41386)
Browse files Browse the repository at this point in the history
This PR contains changes made by updating the next-pwa to version [`5.6.0`](https://github.com/shadowwalker/next-pwa/releases/tag/5.6.0)


## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)


Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
  • Loading branch information
sunwoo0706 and balazsorban44 committed Oct 13, 2022
1 parent af739ed commit a7d04ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions examples/progressive-web-app/next.config.js
@@ -1,10 +1,8 @@
/** @type {import('next').NextConfig} */
const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')
const withPWA = require('next-pwa')({
dest: 'public',
})

module.exports = withPWA({
pwa: {
dest: 'public',
runtimeCaching,
},
// config
})
6 changes: 3 additions & 3 deletions examples/progressive-web-app/package.json
Expand Up @@ -7,9 +7,9 @@
},
"dependencies": {
"next": "latest",
"next-pwa": "5.5.4",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "17.0.4",
Expand Down

0 comments on commit a7d04ab

Please sign in to comment.