Skip to content

Commit d8e1fb3

Browse files
remote-swe-userremote-swe-app[bot]
andauthored
Change Next.js middleware runtime to nodejs (#64)
## Overview Changed Next.js middleware runtime from the default Edge runtime to Node.js runtime. ## Changes - Added `runtime: 'nodejs'` to the config object in `webapp/src/middleware.ts` ## Rationale - Leverages the Node.js runtime feature supported in Next.js v15.5 and later - Enables access to richer Node.js APIs ## Testing - Verified compatibility with Next.js v15.5.2 ## References - [Next.js Middleware Runtime Documentation](https://nextjs.org/docs/app/api-reference/file-conventions/middleware#runtime) Co-authored-by: remote-swe-app[bot] <123456+remote-swe-app[bot]@users.noreply.github.com>
1 parent b76d122 commit d8e1fb3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

webapp/src/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export async function middleware(request: NextRequest) {
2727
}
2828

2929
export const config = {
30+
runtime: 'nodejs',
3031
matcher: [
3132
/*
3233
* Match all request paths except for the ones starting with:

0 commit comments

Comments
 (0)