Skip to content

Commit 616ed69

Browse files
authored
chore: update next to v11 (#243)
1 parent 5e0f571 commit 616ed69

File tree

6 files changed

+616
-2338
lines changed

6 files changed

+616
-2338
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"version": "detect"
2121
}
2222
},
23+
"ignorePatterns": ["next.config.js"],
2324
"parser": "@typescript-eslint/parser",
2425
"parserOptions": {
2526
"project": "./tsconfig.json",

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/// <reference types="next" />
22
/// <reference types="next/types/global" />
3+
/// <reference types="next/image-types/global" />

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const serviceWorkerUrl = `/_next/${serviceWorkerPath}`;
1414
const serviceWorkerDest = `.next/${serviceWorkerPath}`;
1515

1616
module.exports = {
17+
webpack5: true,
1718
reactStrictMode: true,
1819
env: {
1920
serviceWorkerUrl

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"name": "pwa-boilerplate",
33
"description": "PWA Boilerplate",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"license": "MIT",
66
"dependencies": {
77
"@svgr/webpack": "5.5.0",
88
"html-react-parser": "^1.2.3",
99
"jstoxml": "^2.0.3",
10-
"next": "^10.0.5",
10+
"next": "^11.0.0",
1111
"raw-loader": "^4.0.2",
1212
"react": "^17.0.1",
1313
"react-dom": "^17.0.1",
1414
"react-redux": "^7.2.3",
1515
"redux": "^4.0.5",
1616
"redux-thunk": "^2.3.0",
1717
"sass": "^1.32.13",
18-
"typescript": "~4.2.4",
18+
"typescript": "^4.3.2",
1919
"workbox-core": "^6.1.2",
2020
"workbox-expiration": "^6.0.2",
2121
"workbox-precaching": "^6.0.2",
@@ -33,14 +33,15 @@
3333
"@typescript-eslint/parser": "^4.18.0",
3434
"eslint": "^7.23.0",
3535
"eslint-config-airbnb": "^18.2.1",
36+
"eslint-config-next": "^11.0.1",
3637
"eslint-plugin-flowtype": "5.7.0",
3738
"eslint-plugin-import": "^2.23.2",
3839
"eslint-plugin-jsx-a11y": "6.4.1",
3940
"eslint-plugin-react": "^7.22.0",
4041
"eslint-plugin-react-hooks": "^4.2.0"
4142
},
4243
"scripts": {
43-
"development": "NODE_ENV=development next",
44+
"dev": "NODE_ENV=development next",
4445
"start": "NODE_ENV=production next start",
4546
"build": "next build",
4647
"eslint": "eslint ./src"

src/sw/utils/getBuildManifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
declare const self: ServiceWorkerGlobalScope;
22

33
const getBuildManifest = (): NextBuildManifest => {
4-
const manifest = self.__BUILD_MANIFEST;
4+
const { __rewrites, sortedPages, ...manifest } = self.__BUILD_MANIFEST;
55

66
return Object.entries(manifest).reduce<NextBuildManifest>(
77
(manifest, [page, assets]) => ({

0 commit comments

Comments
 (0)