Skip to content

Commit

Permalink
fix main type
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeon81 committed Feb 14, 2024
1 parent 0703138 commit d8c1421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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개월 이상&region1=&region2=&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개월 이상&region1=&region2=&place=&status=&tag=`,
{
headers: {
'Cache-Control': 'no-store',
Expand Down

0 comments on commit d8c1421

Please sign in to comment.