File tree 3 files changed +14
-12
lines changed
3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ const LearningPage = async () => {
7
7
const accessToken = cookieStore . get ( 'access_token' ) ?. value ;
8
8
9
9
const headers : HeadersInit = {
10
- 'Content-Type' : 'application/json' ,
10
+ 'Content-Type' : 'application/json'
11
11
} ;
12
-
12
+
13
13
if ( accessToken ) {
14
14
headers [ 'Authorization' ] = `Bearer ${ accessToken } ` ;
15
15
}
16
16
17
- const response = await fetch ( 'http ://43.200.90.72 /contents/overview' , {
17
+ const response = await fetch ( 'https ://moaguide.n-e.kr /contents/overview' , {
18
18
method : 'GET' ,
19
19
headers,
20
- cache : 'no-store' ,
20
+ cache : 'no-store'
21
21
} ) ;
22
22
23
23
if ( ! response . ok ) {
@@ -28,11 +28,11 @@ const LearningPage = async () => {
28
28
const initialData = await response . json ( ) ;
29
29
30
30
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" >
32
32
< Navbar />
33
33
< LearningPageClient initialData = { initialData } />
34
34
</ div >
35
35
) ;
36
36
} ;
37
37
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 ({
21
21
22
22
try {
23
23
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` ,
25
25
{
26
26
headers : {
27
27
Authorization : `Bearer ${ token } `
Original file line number Diff line number Diff line change 1
-
2
1
import PracticeDetailIndex from '@/components/practice/PracticeDetailIndex' ;
3
2
import type { ArticleItem } from '@/types/homeComponentsType' ;
4
3
import React from 'react' ;
@@ -10,9 +9,12 @@ interface PracticeDetailPageProps {
10
9
}
11
10
12
11
const 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
+ ) ;
16
18
17
19
if ( ! response . ok ) {
18
20
throw new Error ( 'Failed to fetch data' ) ;
@@ -23,4 +25,4 @@ const PracticeDetailPage = async ({ params }: PracticeDetailPageProps) => {
23
25
return < PracticeDetailIndex data = { data } /> ;
24
26
} ;
25
27
26
- export default PracticeDetailPage ;
28
+ export default PracticeDetailPage ;
You can’t perform that action at this time.
0 commit comments