Skip to content

Commit 1dd60c7

Browse files
committed
refactor(api): update GET request parameters to improve TypeScript compatibility and maintain Next.js 15 support
1 parent 303e0c1 commit 1dd60c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/get-schema/[name]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export const dynamic = "force-dynamic";
2929
export const fetchCache = "force-no-store";
3030

3131
// Use the simplest form for Next.js 15 compatibility
32-
// Type the parameters with any to satisfy TypeScript without conflicting with Next.js
33-
export async function GET(request: any, context: any) {
32+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
33+
export async function GET(request: Request, context: any) {
3434
// Extract schema name from URL params
3535
const schemaName = context.params.name;
3636

0 commit comments

Comments
 (0)