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 3cdbd78 commit 473a7b4Copy full SHA for 473a7b4
app/api/generate/[framework]/[fileName]/route.ts
@@ -18,10 +18,10 @@ function mapOutputFileToTemplateType(outputFile: string): string {
18
19
export async function POST(
20
request: NextRequest,
21
- { params }: { params: { framework: string; fileName: string } },
+ context: { params: Promise<{ framework: string; fileName: string }> },
22
) {
23
try {
24
- const { framework, fileName } = params
+ const { framework, fileName } = await context.params
25
const responses = (await request.json()) as WizardResponses
26
27
const frameworkFromPath =
0 commit comments