Skip to content
Merged
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
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />
/// <reference path="./.next/types/routes.d.ts" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
3 changes: 3 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ const nextConfig = {
sassOptions: {
silenceDeprecations: ['legacy-js-api'],
},
experimental: {
nodeMiddleware: true,
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant experimental flag for stable Node.js middleware

Low Severity

The experimental.nodeMiddleware flag in next.config.ts is unnecessary with Next.js 15.5, where Node.js middleware is a stable feature. The runtime: 'nodejs' in the middleware config export (src/middleware.ts) is the only configuration needed. Having the redundant experimental flag suggests the feature is still experimental and may confuse future maintainers.

Fix in Cursor Fix in Web

};

module.exports = withSentryConfig(nextConfig, {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"mdx-bundler": "^10.0.1",
"mermaid": "^11.11.0",
"micromark": "^4.0.0",
"next": "15.1.12",
"next": "15.5.12",
"next-plausible": "^3.12.4",
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.6",
Expand Down Expand Up @@ -184,4 +184,4 @@
"node": "22.16.0",
"pnpm": "10.30.0"
}
}
}
File renamed without changes.
File renamed without changes
417 changes: 341 additions & 76 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/components/codeTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ const showSigninNote = (children: ReactNode) => {
};

export function CodeTabs({children}: CodeTabProps) {
const codeBlocks = Array.isArray(children) ? [...children] : [children];
const codeBlocks = (Array.isArray(children) ? [...children] : [children]).filter(
child => child?.props
);

// The title is what we use for sorting and also for remembering the
// selection. If there is no title fall back to the title cased language name
Expand Down
1 change: 1 addition & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const config = {
// - favicon.ico (favicon file)
'/((?!api|_next/static|_next/image|favicon.ico).*)',
],
runtime: 'nodejs',
};

// This function can be marked `async` if using `await` inside
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "removeComments": true, /* Do not emit comments to output. */
"noEmit": true, /* Do not emit outputs. */ // "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
"isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ /* Strict Type-Checking Options */// "strict": true /* Enable all strict type-checking options. */
"isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ /* Strict Type-Checking Options */ // "strict": true /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
Expand Down Expand Up @@ -76,9 +76,9 @@
".cache"
],
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
"**/*.ts",
"**/*.tsx"
"**/*.tsx",
"next-env.d.ts",
".next/types/**/*.ts"
]
}
Loading