Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/icons/gdgocIcon/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/gdgocIcon/96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/gdgoc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/gpters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/inha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/강쌤과외.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/동연.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/logo/창지단.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/icons/ui/pencil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/christmas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/globalthon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/googleconf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/party.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/seminar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/snack.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/activity/songdo_conf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/bgimg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/study/study1.jpg
Binary file modified public/images/study/study2.jpg
Binary file modified public/images/study/study3.jpg
Binary file modified public/images/study/study4.jpg
Binary file modified public/images/study/study5.jpg
Binary file modified public/screenshots/home.png
2 changes: 1 addition & 1 deletion src/app/api/auth/refresh/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axios from 'axios';
const API_BASE_URL = process.env.NEXT_PUBLIC_BASE_API_URL;

export async function POST(req) {
const targetUrl = `${API_BASE_URL}/refresh`;
const targetUrl = `${API_BASE_URL}/auth/refresh`;
const isProd = process.env.NODE_ENV === 'production';

try {
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useAuthApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import axios from 'axios';
import { useAuth } from '@/hooks/useAuth';

const API_AUTH_URL = process.env.NEXT_PUBLIC_BASE_API_URL + '/auth';
const API_REFRESH_URL = process.env.NEXT_PUBLIC_BASE_API_URL + '/refresh';
const ROUTE_API_URL = '/api/auth';

export const useAuthApi = () => {
Expand All @@ -24,7 +25,7 @@ export const useAuthApi = () => {

return response;
} catch (error) {
if(error.response?.status === 401) {
if (error.response?.status === 401) {
console.warn('리프레시 토큰 만료');
} else {
console.error('Access Token 갱신 오류: ', error);
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useAuthenticatedApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export const useAuthenticatedApi = () => {
async (error) => {
const originalRequest = error.config;

if (error.response?.status === 403 && !originalRequest._retry) {
// 401 또는 403 에러이고, 아직 재시도하지 않은 경우
if ((error.response?.status === 401 || error.response?.status === 403) && !originalRequest._retry) {
originalRequest._retry = true;

try {
Expand Down
10 changes: 5 additions & 5 deletions src/services/study/useStudyList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export const useStudyList = (apiClient) => {
useEffect(() => {
const fetchStudyListData = async () => {
try {
if (process.env.NODE_ENV === 'development') {
setStudyListGDGOC(getStudiesGDGOC.data.studyList);
setStudyListPERSONAL(getStudiesPERSONAL.data.studyList);
} else {
// if (process.env.NODE_ENV === 'development') {
// setStudyListGDGOC(getStudiesGDGOC.data.studyList);
// setStudyListPERSONAL(getStudiesPERSONAL.data.studyList);
//} else {
//const resGDGOC = await apiClient.get('/study?page=1&creatorType=GDGOC');
const resPERSONAL = await apiClient.get('/study?page=1&creatorType=PERSONAL');
//setStudyListGDGOC(resGDGOC?.data?.data?.studyList);
setStudyListPERSONAL(resPERSONAL?.data?.data?.studyList);
}
// }
} catch (err) {
setError(err);
} finally {
Expand Down