Skip to content

Commit 237a09d

Browse files
authored
DEV-896: Upgrade Next to v12 (#341)
* Bump Next.js to v12 * Bump Node to use v17 * Remove serverless `target` as it is now deprecated * Ignore TypeScript tsconfig.tsbuildinfo
1 parent 1edd780 commit 237a09d

7 files changed

+171
-682
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ package-lock.json
3131
npm-debug.log*
3232
yarn-debug.log*
3333
yarn-error.log*
34+
tsconfig.tsbuildinfo

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v17

next-env.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32

43
// NOTE: This file should not be edited
54
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = (phase) =>
1212
providerImportSource: "@mdx-js/react",
1313
},
1414
})({
15-
target: "serverless",
1615
env: {
1716
isDev: phase === PHASE_DEVELOPMENT_SERVER,
1817
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"babel-preset-react-app": "^9.1.1",
5353
"body-scroll-lock": "3.0.3",
5454
"classnames": "^2.2.6",
55-
"dwolla-mdx-remark": "Dwolla/dwolla-mdx-remark#semver:^1.0.0",
55+
"dwolla-mdx-remark": "Dwolla/dwolla-mdx-remark#1.1.0",
5656
"eslint-plugin-jest": "^23.8.2",
5757
"github-slugger": "^1.3.0",
5858
"highlight.js": "^10.7.2",
@@ -65,7 +65,7 @@
6565
"lodash.map": "^4.6.0",
6666
"lodash.sortby": "^4.7.0",
6767
"lodash.uniqby": "^4.7.0",
68-
"next": "^11.1.4",
68+
"next": "^12.1.6",
6969
"next-images": "1.3.0",
7070
"next-plugin-yaml": "^1.0.1",
7171
"ordinal": "^1.0.3",

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"resolveJsonModule": true,
1414
"jsx": "preserve",
1515
"downlevelIteration": true,
16-
"isolatedModules": true
16+
"isolatedModules": true,
17+
"incremental": true
1718
},
1819
"exclude": ["node_modules"],
1920
"include": [

yarn.lock

+165-676
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)