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:
parent
af739ed8e4
commit
a7d04ab9c8
2 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue