From d8c1421ef61fff29a92d87dd317e2532e128adae Mon Sep 17 00:00:00 2001 From: Hyeon Ji Kim Date: Wed, 14 Feb 2024 15:06:28 +0900 Subject: [PATCH] fix main type --- src/app/page.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 08a49d97c..a8bfb212c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,11 +3,13 @@ import axios from 'axios' export const dynamic = 'force-dynamic' -export default async function Home() { +export default async function Home({ searchParams }: { searchParams: any }) { let data try { const response = await axios.get( - `${process.env.NEXT_PUBLIC_SSR_API}/api/v1/recruit?type=STUDY&sort=latest&page=1&pageSize=6&keyword=&due=1주일&due=12개월 이상®ion1=®ion2=&place=&status=&tag=`, + `${process.env.NEXT_PUBLIC_SSR_API}/api/v1/recruit?type=${ + searchParams?.type ?? 'STUDY' + }&sort=latest&page=1&pageSize=6&keyword=&due=1주일&due=12개월 이상®ion1=®ion2=&place=&status=&tag=`, { headers: { 'Cache-Control': 'no-store',