-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
909 additions
and
1,127 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
// app/api/github/login/route.ts | ||
import { redirect } from 'next/navigation'; | ||
import { NextRequest } from 'next/server'; | ||
|
||
export async function GET(request: NextRequest) { | ||
// 환경 변수가 정의되어 있지 않은 경우 에러 처리 | ||
if (!process.env.NEXT_PUBLIC_SERVER_URL) { | ||
throw new Error('Server URL is not defined'); | ||
} | ||
// 환경 변수가 정의되어 있지 않은 경우 에러 처리 | ||
if (!process.env.NEXT_PUBLIC_SERVER_URL) { | ||
throw new Error('Server URL is not defined'); | ||
} | ||
|
||
// GitHub 로그인 URL로 리다이렉트 | ||
redirect(`${process.env.NEXT_PUBLIC_SERVER_URL}/auth/github/login`); | ||
// GitHub 로그인 URL로 리다이렉트 | ||
redirect(`${process.env.NEXT_PUBLIC_SERVER_URL}/auth/github/login`); | ||
} | ||
|
||
// 허용된 HTTP 메서드 정의 | ||
export const dynamic = 'force-dynamic'; | ||
export const runtime = 'edge'; // Optional: Edge Runtime 사용 시 | ||
export const runtime = 'edge'; // Optional: Edge Runtime 사용 시 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
import { ManageLayout } from '@/layouts/ManageLayout'; | ||
|
||
interface LayoutProps { | ||
children: React.ReactNode[]; | ||
} | ||
|
||
export default function Layout({ children }: LayoutProps) { | ||
return ( | ||
<ManageLayout> | ||
<>{children}</> | ||
</ManageLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.