Skip to content

Commit 213fee9

Browse files
authored
Upgrade to Next.js 12; drop custom deploy tooling (#15)
1 parent c956f53 commit 213fee9

13 files changed

+635
-3929
lines changed

.github/workflows/ci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@ jobs:
3737

3838
- name: Build
3939
run: yarn build
40-
41-
- name: Build API images
42-
run: yarn build-api-images

.github/workflows/deploy.yml

-48
This file was deleted.

next-env.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/types/global" />
3+
/// <reference types="next/image-types/global" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

-15
This file was deleted.

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7-
"build": "tsc && next build && next export",
7+
"build": "tsc && next build",
88
"next-build": "next build",
99
"build-api-images": "ts-node tools/build-api-images.ts",
1010
"deploy": "ts-node tools/deploy.ts",
@@ -23,7 +23,7 @@
2323
"gray-matter": "^4.0.2",
2424
"image-size": "^0.9.3",
2525
"katex": "^0.12.0",
26-
"next": "^10.0.5",
26+
"next": "12.0.4-canary.9",
2727
"next-mdx-remote": "^2.0.1",
2828
"node-fetch": "^2.6.1",
2929
"prism-react-renderer": "^1.1.1",
@@ -40,17 +40,12 @@
4040
"devDependencies": {
4141
"@types/classnames": "^2.2.11",
4242
"@types/gtag.js": "^0.0.4",
43-
"@types/mime": "^2.0.3",
4443
"@types/node": "^14.14.14",
4544
"@types/node-fetch": "^2.5.8",
4645
"@types/react": "^17.0.0",
47-
"aws-sdk": "^2.828.0",
48-
"execa": "^5.0.0",
49-
"globby": "^11.0.2",
50-
"mime": "^2.5.0",
5146
"prettier": "2.2.1",
5247
"sass": "^1.30.0",
5348
"ts-node": "^9.1.1",
54-
"typescript": "^4.1.3"
49+
"typescript": "^4.4.4"
5550
}
5651
}

tools/api-utils.ts

-43
This file was deleted.

tools/aws.ts

-44
This file was deleted.

tools/build-api-images.ts

-103
This file was deleted.

0 commit comments

Comments
 (0)