Update next pwa version in pwa example (#41386)

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>
This commit is contained in:
이선우 2022-10-14 01:57:45 +09:00 committed by GitHub
parent af739ed8e4
commit a7d04ab9c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -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
})

View file

@ -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",