Skip to content

Commit 5ca8573

Browse files
committed
chore: upgrade next and react
1 parent 7221539 commit 5ca8573

File tree

5 files changed

+229
-207
lines changed

5 files changed

+229
-207
lines changed

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference path="./.next/types/routes.d.ts" />
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ export default withNextra({
4747
process.env.VERCEL_ENV === "production"
4848
? "https://docs-authzed.vercel.app/docs"
4949
: undefined,
50+
// NOTE: we still use webpack instead of turbopack for dev
51+
// because turbopack doesn't support non-serializable nextjs options.
52+
// The rehypePrettyCodeOptions in the block above include a function,
53+
// which cannot be serialized. If nextra figures out how to provide
54+
// those options in a different manner or if turbopack starts supporting
55+
// them we can migrate.
5056
webpack: (config) => {
5157
config.module.rules.push(
5258
...[

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.1",
44
"description": "Authzed & SpiceDB docs powered by Nextra",
55
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
6+
"dev": "next dev --webpack",
7+
"build": "next build --webpack",
88
"postbuild": "./scripts/postbuild.sh",
99
"start": "next start",
1010
"lint:markdown": "markdownlint-cli2",
@@ -29,13 +29,13 @@
2929
"clsx": "^2.1.1",
3030
"escape-string-regexp": "^5.0.0",
3131
"js-yaml": "^4.1.0",
32-
"next": "^15.5.7",
32+
"next": "^16.1.0",
3333
"next-sitemap": "^4.2.3",
3434
"nextra": "^4.6.0",
3535
"nextra-theme-docs": "^4.6.0",
3636
"posthog-js": "^1.266.3",
37-
"react": "^18.3.1",
38-
"react-dom": "^18.3.1",
37+
"react": "^19.2.3",
38+
"react-dom": "^19.2.3",
3939
"react-youtube": "^10.1.0",
4040
"sharp": "^0.34.0",
4141
"swagger-ui-react": "^5.30.2",

0 commit comments

Comments
 (0)