File tree Expand file tree Collapse file tree 11 files changed +38
-29
lines changed
Expand file tree Collapse file tree 11 files changed +38
-29
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ const nextConfig = {
2424 'mimgnews.pstatic.net' ,
2525 'image.newsis.com' ,
2626 'www.chuksannews.co.kr' ,
27- 'ssl.pstatic.net'
27+ 'ssl.pstatic.net' ,
28+ 'imgnews.pstatic.net'
2829 ]
2930 } ,
3031 swcMinify : true ,
Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ export default function RootLayout({
7575 />
7676 < meta
7777 name = "naver-site-verification"
78- content = "04dacb01e59bc7de3fb1e9260ae7e5f98ee465ac "
78+ content = "2e5a2baeaa16a876f71debbf19ada393b4f4a688 "
7979 />
80+
8081 { /* 본서버 */ }
8182 < meta
8283 name = "google-site-verification"
@@ -100,10 +101,10 @@ export default function RootLayout({
100101 ) : null }
101102 < IntegrateMSW >
102103 < QueryProvider >
103- < Script
104+ { /* <Script
104105 strategy="beforeInteractive"
105106 src={`//dapi.kakao.com/v2/maps/sdk.js?appkey=${process.env.NEXT_PUBLIC_MAP_KEY}&autoload=false`}
106- />
107+ /> */ }
107108 { /* <AuthWrapper /> */ }
108109 < GnbWrapper />
109110 < RefreshTokenWrapper />
Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ const LearningPage = async () => {
77 const accessToken = cookieStore . get ( 'access_token' ) ?. value ;
88
99 const headers : HeadersInit = {
10- 'Content-Type' : 'application/json' ,
10+ 'Content-Type' : 'application/json'
1111 } ;
12-
12+
1313 if ( accessToken ) {
1414 headers [ 'Authorization' ] = `Bearer ${ accessToken } ` ;
1515 }
1616
17- const response = await fetch ( 'http ://43.200.90.72 /contents/overview' , {
17+ const response = await fetch ( 'https ://moaguide.n-e.kr /contents/overview' , {
1818 method : 'GET' ,
1919 headers,
20- cache : 'no-store' ,
20+ cache : 'no-store'
2121 } ) ;
2222
2323 if ( ! response . ok ) {
@@ -28,11 +28,11 @@ const LearningPage = async () => {
2828 const initialData = await response . json ( ) ;
2929
3030 return (
31- < div className = ' min-h-[calc(100dvh-135.5px)] flex flex-col' >
31+ < div className = " min-h-[calc(100dvh-135.5px)] flex flex-col" >
3232 < Navbar />
3333 < LearningPageClient initialData = { initialData } />
3434 </ div >
3535 ) ;
3636} ;
3737
38- export default LearningPage ;
38+ export default LearningPage ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const BookmarkPage = async ({
2121
2222 try {
2323 const productBookmarkResponse = await fetch (
24- `https://api. moaguide.com /summary/list?category=${ category } &subcategory=bookmark&sort=bookmark&page=${ pages } &size=10` ,
24+ `https://moaguide.n-e.kr /summary/list?category=${ category } &subcategory=bookmark&sort=bookmark&page=${ pages } &size=10` ,
2525 {
2626 headers : {
2727 Authorization : `Bearer ${ token } `
Original file line number Diff line number Diff line change 1-
21import PracticeDetailIndex from '@/components/practice/PracticeDetailIndex' ;
32import type { ArticleItem } from '@/types/homeComponentsType' ;
43import React from 'react' ;
@@ -10,9 +9,12 @@ interface PracticeDetailPageProps {
109}
1110
1211const PracticeDetailPage = async ( { params } : PracticeDetailPageProps ) => {
13- const response = await fetch ( `https://api.moaguide.com/study/detail/article/${ params . id } ` , {
14- cache : 'no-store'
15- } ) ;
12+ const response = await fetch (
13+ `https://moaguide.n-e.kr/study/detail/article/${ params . id } ` ,
14+ {
15+ cache : 'no-store'
16+ }
17+ ) ;
1618
1719 if ( ! response . ok ) {
1820 throw new Error ( 'Failed to fetch data' ) ;
@@ -23,4 +25,4 @@ const PracticeDetailPage = async ({ params }: PracticeDetailPageProps) => {
2325 return < PracticeDetailIndex data = { data } /> ;
2426} ;
2527
26- export default PracticeDetailPage ;
28+ export default PracticeDetailPage ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Product from './(product)/Product';
33import { IProductCommon , IReport , ISummaryData } from '@/types/Diviend' ;
44import { getCookie } from '@/utils/serverCookies' ;
55
6- const API_BASE_URL = process . env . NEXT_PUBLIC_API_BASE_URL || 'https://api. moaguide.com ' ;
6+ const API_BASE_URL = process . env . NEXT_PUBLIC_API_BASE_URL || 'https://moaguide.n-e.kr ' ;
77
88const ProductPage = async ( {
99 searchParams
Original file line number Diff line number Diff line change 11import { MetadataRoute } from 'next' ;
22
33export default function robots ( ) : MetadataRoute . Robots {
4- const isVercel =
5- process . env . VERCEL_URL && process . env . VERCEL_URL . includes ( 'vercel.app' ) ;
4+ const siteUrl = process . env . NEXT_PUBLIC_SITE_URL ?? '' ;
5+ const isMainDomain = siteUrl . includes ( 'moaguide.com' ) ;
6+
67 return {
78 rules : [
89 {
910 userAgent : '*' ,
10- allow : isVercel ? '' : '/ ' ,
11- disallow : isVercel ? '/ ' : ''
12- }
11+ allow : isMainDomain ? '/ ' : '' ,
12+ disallow : isMainDomain ? '' : '/' ,
13+ } ,
1314 ] ,
14- sitemap : 'https://moaguide.com/ sitemap.xml'
15+ sitemap : ` ${ siteUrl } / sitemap.xml` ,
1516 } ;
16- }
17+ }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import GoogleLoginButton from '/public/images/sign/google-login.svg';
55const GoogleLogin = ( { setLoginType } : { setLoginType : ( type : 'google' ) => void } ) => {
66 const handleGoogleLogin = ( ) => {
77 setLoginType ( 'google' ) ;
8- window . location . href = 'https://api. moaguide.com /oauth2/authorization/google' ;
8+ window . location . href = 'https://moaguide.n-e.kr /oauth2/authorization/google' ;
99 } ;
1010
1111 return (
Original file line number Diff line number Diff line change @@ -94,4 +94,4 @@ const Gnb = () => {
9494 ) ;
9595} ;
9696
97- export default Gnb ;
97+ export default Gnb ;
Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ const RealtimeRank = () => {
1616 return < RealtimeRankSkeleton /> ;
1717 }
1818
19+ //돌아가려면 sm:block
1920 return (
2021 < div className = "max-w-[280px] w-full h-[291px] hidden sm:block" >
2122 < div className = "flex flex-col gap-5" >
22- < div className = "mt-1 text-body5 text-black sm:text-heading4" >
23+ < div className = "mt-1 text-body5 text-black sm:text-heading4 " >
2324 실시간 검색 순위
2425 </ div >
2526 < div className = "p-5 shadow-custom-normal rounded-[12px] flex-1" >
@@ -30,7 +31,9 @@ const RealtimeRank = () => {
3031 className = { `${ i < 3 ? 'text-normal text-body6 ' : 'text-gray400 text-body6' } ` } >
3132 { item . rank } 위
3233 </ div >
33- < div className = "flex-1 text-body2 text-black truncate cursor-pointer" onClick = { ( ) => {
34+ < div
35+ className = "flex-1 text-body2 text-black truncate cursor-pointer"
36+ onClick = { ( ) => {
3437 setKeyword ( item . keyword ) ;
3538 router . push ( '/search' ) ;
3639 } } >
You can’t perform that action at this time.
0 commit comments