We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b01b65 commit ac545ceCopy full SHA for ac545ce
app/api/schemas/[name]/route.ts
@@ -4,15 +4,17 @@ import path from "path";
4
import jsonc from "jsonc";
5
6
// Define the expected structure of the context parameter
7
-interface GetContext {
8
- params: {
9
- name: string;
10
- };
11
-}
+// Remove the custom GetContext interface
+// interface GetContext {
+// params: {
+// name: string;
+// };
12
+// }
13
14
export async function GET(
15
_request: Request, // Prefix with _ if not used
- { params }: GetContext, // Use the defined interface
16
+ // Use the standard Next.js context typing for route parameters
17
+ { params }: { params: { name: string } },
18
) {
19
console.log("[API /api/schemas/[name]] Waiting for params...");
20
0 commit comments