Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
6 changes: 6 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export default withNextra({
process.env.VERCEL_ENV === "production"
? "https://docs-authzed.vercel.app/docs"
: undefined,
// NOTE: we still use webpack instead of turbopack for dev
// because turbopack doesn't support non-serializable nextjs options.
// The rehypePrettyCodeOptions in the block above include a function,
// which cannot be serialized. If nextra figures out how to provide
// those options in a different manner or if turbopack starts supporting
// them we can migrate.
webpack: (config) => {
config.module.rules.push(
...[
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.1",
"description": "Authzed & SpiceDB docs powered by Nextra",
"scripts": {
"dev": "next dev",
"build": "next build",
"dev": "next dev --webpack",
"build": "next build --webpack",
"postbuild": "./scripts/postbuild.sh",
"start": "next start",
"lint:markdown": "markdownlint-cli2",
Expand All @@ -29,13 +29,13 @@
"clsx": "^2.1.1",
"escape-string-regexp": "^5.0.0",
"js-yaml": "^4.1.0",
"next": "^15.5.7",
"next": "^16.1.0",
"next-sitemap": "^4.2.3",
"nextra": "^4.6.0",
"nextra-theme-docs": "^4.6.0",
"posthog-js": "^1.266.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-youtube": "^10.1.0",
"sharp": "^0.34.0",
"swagger-ui-react": "^5.30.2",
Expand Down
Loading