From 9906880a8d3687533bb3940b8383124cd28f7e28 Mon Sep 17 00:00:00 2001 From: 2paperstar Date: Thu, 16 Nov 2023 00:11:28 +0900 Subject: [PATCH 1/2] fix: change notice api endpoint --- src/api/notice/notice.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/notice/notice.ts b/src/api/notice/notice.ts index f81084fd..7b124ce9 100644 --- a/src/api/notice/notice.ts +++ b/src/api/notice/notice.ts @@ -1,5 +1,3 @@ -import dayjs from 'dayjs'; - import { gql } from '@/generated'; import api from '..'; @@ -44,7 +42,7 @@ export interface Notices { export const getAllNotices = async ( params: NoticePaginationParams & NoticeSearchParams = {}, ) => - api.get('/notice/all', { params }).then(({ data }) => ({ + api.get('/notice', { params }).then(({ data }) => ({ ...data, list: data.list.map(({ imageUrl, ...notice }) => ({ ...notice, From 20b3501dc32681e1e7a4336abe77f9b0074c4569 Mon Sep 17 00:00:00 2001 From: 2paperstar Date: Thu, 16 Nov 2023 00:20:22 +0900 Subject: [PATCH 2/2] chore: change IDP_REDIRECT_URI in .env --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 69af5bac..b85b30f8 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ NEXT_PUBLIC_API_BASE_URL=https://api.ziggle.gistory.me/ NEXT_PUBLIC_IDP_BASE_URL=https://idp.gistory.me/ NEXT_PUBLIC_IDP_CLIENT_ID=ziggle2023 -NEXT_PUBLIC_IDP_REDIRECT_URI=https://stg.ziggle.gistory.me/api/login +NEXT_PUBLIC_IDP_REDIRECT_URI=https://ziggle.gistory.me/api/login