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 03ac74d commit b6a7244Copy full SHA for b6a7244
src/app/api/[...path]/route.ts
@@ -13,6 +13,10 @@ async function proxy(
13
req: NextRequest,
14
ctx: { params: Promise<{ path: string[] }> },
15
) {
16
+ if (!req.nextUrl.pathname.startsWith("/api/")) {
17
+ return NextResponse.next();
18
+ }
19
+
20
// 프록시 대상 경로 생성
21
const { path: rawPath } = await ctx.params;
22
const path = "/" + rawPath.join("/");
src/app/detail/[postingId]/page.tsx
@@ -14,7 +14,7 @@ export default async function Page({
}: {
params: { postingId: string };
}) {
- const { postingId } = params;
+ const { postingId } = await params;
const id = Number(postingId);
const queryClient = new QueryClient();
0 commit comments