diff --git a/apps/mobile/next.config.mjs b/apps/mobile/next.config.mjs index b20c99f..fbd9685 100644 --- a/apps/mobile/next.config.mjs +++ b/apps/mobile/next.config.mjs @@ -41,6 +41,12 @@ const nextConfig = { port: '', pathname: '/**', }, + { + protocol: 'https', + hostname: 'raw.githubusercontent.com', + port: '', + pathname: '/**', + }, ], }, }; diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index b20c99f..fbd9685 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -41,6 +41,12 @@ const nextConfig = { port: '', pathname: '/**', }, + { + protocol: 'https', + hostname: 'raw.githubusercontent.com', + port: '', + pathname: '/**', + }, ], }, }; diff --git a/apps/web/src/app/(main)/page.tsx b/apps/web/src/app/(main)/page.tsx index bdfe034..16745c3 100644 --- a/apps/web/src/app/(main)/page.tsx +++ b/apps/web/src/app/(main)/page.tsx @@ -1,8 +1,8 @@ 'use client'; -import { Flex, Spinner } from '@radix-ui/themes'; import Link from 'next/link'; -import { useRef, useState } from 'react'; +import { useRouter } from 'next/navigation'; +import { useEffect, useRef, useState } from 'react'; import Button from '@/shared/components/button/button'; import Input from '@/shared/components/input/input'; import { useGetUserList } from '@/shared/apis/main/queries'; @@ -28,6 +28,7 @@ import { } from './mainPage.css'; export default function MainPage() { + const router = useRouter(); const [유저검색키워드, set유저검색키워드] = useState(''); const { data } = useGetUserList({ searchedname: 유저검색키워드 }); diff --git a/apps/web/src/app/auth/_components/authCompletion/authCompletion.tsx b/apps/web/src/app/auth/_components/authCompletion/authCompletion.tsx index d26e3ad..a937c86 100644 --- a/apps/web/src/app/auth/_components/authCompletion/authCompletion.tsx +++ b/apps/web/src/app/auth/_components/authCompletion/authCompletion.tsx @@ -20,7 +20,7 @@ const AuthCompletion = () => { const handleHomeClick = () => { queryClient.invalidateQueries({ queryKey: ['userInfo'] }); - router.push('/'); + window.location.href = '/'; }; return ( diff --git a/apps/web/src/app/auth/_components/authRedirect/authRedirect.tsx b/apps/web/src/app/auth/_components/authRedirect/authRedirect.tsx index 5691638..b01b04e 100644 --- a/apps/web/src/app/auth/_components/authRedirect/authRedirect.tsx +++ b/apps/web/src/app/auth/_components/authRedirect/authRedirect.tsx @@ -28,10 +28,10 @@ const AuthRedirect = ({ handleNextStep }: AuthRedirectProps) => { console.error('토큰이 제공되지 않았습니다.'); return; } - console.log(isRegistered); + if (isRegistered) { queryClient.invalidateQueries({ queryKey: ['userInfo'] }); - router.replace('/', { scroll: false }); + window.location.href = '/'; } else { handleNextStep('school'); } diff --git a/apps/web/src/app/auth/_components/authRegion/authRegion.tsx b/apps/web/src/app/auth/_components/authRegion/authRegion.tsx index 070cf66..93bdab1 100644 --- a/apps/web/src/app/auth/_components/authRegion/authRegion.tsx +++ b/apps/web/src/app/auth/_components/authRegion/authRegion.tsx @@ -39,10 +39,10 @@ const AuthRegion = ({ handleNextStep, 대학교 }: AuthRegionProps) => { set지역검색키워드(region); }; - console.log(대학교, 지역검색키워드); const handle회원가입 = () => { + console.log(대학교, 지역검색키워드); mutate( - { univName: 대학교, regionName: 지역검색키워드 }, + { univName: 대학교, region: 지역검색키워드 }, { onSuccess: () => { handleNextStep('completion'); diff --git a/apps/web/src/app/board/_components/board.tsx b/apps/web/src/app/board/_components/board.tsx index 31cf8dc..5d66a27 100644 --- a/apps/web/src/app/board/_components/board.tsx +++ b/apps/web/src/app/board/_components/board.tsx @@ -19,8 +19,10 @@ const Board = () => {