-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling/#124 #132
Styling/#124 #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๊ณ ๋ง์ผ์ จ์ต๋๋ค. ํน์ accessToken์ด ๋ง๋ฃ๋๋ ๊ฒฝ์ฐ refresh token์ผ๋ก ๊ฐฑ์ ํ๋ ์ฝ๋๋ ์ถํ ๊ฐ๋ฐ๋ ์์ ์ธ๊ฐ์?
app/business/api-path.ts
Outdated
@@ -1,5 +1,4 @@ | |||
const BASE_URL = 'http://localhost:9090'; | |||
process.env.API_MOCKING === 'enable' ? 'http://localhost:9090' : ''; | |||
const BASE_URL = 'http://staging-plzgraduation-env.eba-s4bbj5cp.ap-northeast-2.elasticbeanstalk.com/api/v1'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.envํ์ผ๋ก ๋ณ๋๋ก ๊ด๋ฆฌํ์ง ์์ผ์ ์ด์ ๊ฐ ๊ถ๊ธํด์!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<NavigationItem href={'/sign-in'} label="๋ก๊ทธ์ธ" /> | ||
)} | ||
<NavigationItem href={'/tutorial'} label="ํํ ๋ฆฌ์ผ" /> | ||
<NavigationItem href={'/'} label="ํ์๊ฐ" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ ์๊ฐ์ ๋งํฌ๋ https://soft-anorak-0ca.notion.site/e35e3b210995463fa748f35aab536f2c?pvs=74 ์ ๋๋ค!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
); | ||
} | ||
|
||
type NavigationItemProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
convention์ interface๋ก์ ๋ณ๊ฒฝ์ด ํต์ผ์ฑ ์์ ๊ฒ ๊ฐ์์!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ จ์ต๋๋ค!
sign up form์์ funnel๋ก ๊ด๋ฆฌํ๋ฉด์ ๋ฐ์ํ๊ฒ ๋๋ ๋ช๋ช ๋ฌธ์ ์ ์ด ์๋ค์..!
์ด์ ๋ํด์ ํ์๋ ์ด์ผ๊ธฐ๋ฅผ ๋๋ ๋ณด๋ฉด ์ข์ ๊ฒ ๊ฐ์์:)
- /sign-in์์ ํ์๊ฐ์ ํด๋ฆญ ํ /sign-up?funnel-step=terms ์ง์ ํ์ ๋ ๋ค๋ก ๊ฐ๊ธฐ๊ฐ ์๋ฉ๋๋ค
- ๋์ํ๊ธฐ๋ฅผ ํด๋ฆญํ์ง ์๊ณ query string ์กฐ์ํด์
sign-up?funnel-step=form
ํ์ด์ง๋ก ์ด๋ํ ์ ์์ต๋๋ค
app/(sub-page)/sign-in/page.tsx
Outdated
export default function Page() { | ||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ช๋ช ํ์ด์ง ์ปดํฌ๋ํธ๋ MyPage, ResultPage๋ก ๋ค์ด๋ฐ์ด ๋์ด์๊ณ , ๋ช๋ช ํ์ด์ง ์ปดํฌ๋ํธ๋ ๋ณ๋ค๋ฅธ ์ด๋ฆ ์ง์ ์์ด Page๋ก ๋์ด์๋ค์! ํต์ผํ๋ฉด ์ข์ ๊ฒ ๊ฐ์์
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด ๋ถ๋ถ์ ๋ณํฉํ ํ์ ํต์ผํ๋ ๊ณผ์ ์ ์งํํ๋๋ก ํ๊ฒ ์ต๋๋ค.
if (isValidation(result, UserInfoResponseSchema)) { | ||
return result; | ||
} else if (isValidation(result, InitUserInfoResponseSchema)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if( isValidation(result, UserInfoResponseSchema) || isValidation(result, InitUserInfoResponseSchema) ) return result;
์ด๋ ๊ฒ ์ฒ๋ฆฌํ์ง ์์ผ์ ์ด์ ๊ฐ ์์๊น์?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ๋ฆฌํฉํฐ๋ง์ ์ ์ง์ ์ผ๋ก ์งํํ๋ฉด์ ์ผ๋จ ๋ถ๋ฆฌํ ํ ๋ค์ ํฉ์น๋ ๊ณผ์ ์ ๊ฑฐ์น๋๋ฐ, ์ด๋ฒ์๋ ํฉ์น๊ฒ ๋๋ฝ๋ ๊ฒ ๊ฐ์ต๋๋ค!
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> | ||
<Skeleton className="h-4 w-1/2" /> | ||
<Skeleton className="h-4 w-1/4" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
์ด๊ฒ ๋ฐ๋ณต์ธ ๊ฒ ๊ฐ์๋ฐ map์ ๋๋ฆฌ์ง ์๊ณ ํ๋์ฝ๋ฉํ์ ์ด์ ๊ฐ ์์๊น์!?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ์๋ฏธ๋ก ์ ์ธ ๋จ์๊ฐ ์๋๋ผ ๋ฐ๋ณต์ ์ด์ง๋ง ์ค๋ณต์ด๋ผ๊ณ ์๊ฐํ์ง ์์์ map์ ์ฌ์ฉํ์ง๋ ์์์ต๋๋ค.
Co-authored-by: yougyung <[email protected]>
โฆserInfoResponse schemas
ํผ๋ ์ฃผ์ ๋ฌธ์ ๋ ์๋ ์ปค๋ฐ์์ ํด๊ฒฐํ์ต๋๋ค |
์ฌ์๋ ๋ก์ง ์ถ๊ฐ ๊ตฌํํ์ต๋๋ค |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ จ์ต๋๋ค~
const isServerMoockingEnabled = process.env.API_MOCKING === 'enable'; | ||
const isClientMoockingEnabled = process.env.NEXT_PUBLIC_API_MOCKING === 'enable'; | ||
|
||
if (isMockServer()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์์ ์ ์๊ตฌํ๋ ๊ฑด ์๋์ง๋ง, isMockServer ๊ฐ ์ ์ธ์ ์ ์ฌ์ฉ๋์ด์, ์๊ฐ์ ์ผ๋ก isMockServer ํจ์๋ ์ด๋์ ์๋๊ฑฐ์ง? ํ๋ฉด์ ์ฐพ์๋ ๊ฒ ๊ฐ์์! ๋์ค์ ์ด๋ฐ ๊ฒฝ์ฐ ํ์ดํ ํจ์๋ก ์์ฑํ๋ฉด ๋ ์ข์ ๊ฒ ๊ฐ์์ ๐ซก
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
์๊ฑด ์ฌ์ค ์๋ํ ๊ฑฐ๊ธด ํด์. ๊ธฐ๋ณธ์ ์ผ๋ก ์ฝ๋๋ฅผ ์ฝ์ ๋๋ ์ต์ํ์ ์ ๋ณด๋ฅผ ์๊ฒ๋ ํ๋ ๊ฒ ๊ฐ๋ ์ฑ์ด ์ข๋ค๊ณ ์๊ฐํ๋๋ฐ, isMockServer ํจ์ ์ ์ธ์ด ์์ ์์ผ๋ฉด ๊ตฌํ๋ถ๋ฅผ ์ด์ฉ ์ ์์ด ๋ณด๊ฒ ๋๋๊น ํ ์ ์๋ค๋ฉด ๋ค๋ก ๋นผ๋ ๊ฒ์ ์ ํธํฉ๋๋ค.
-
์ฝ๋ ๋ฆฌ๋ทฐ๋ฅผ ํ ๋๋ ๋ฌผ๋ก ์ด๋์ ์ ์ธ๋์ด ์๋์ง ์ฐพ๊ธฐ ์ด๋ ค์ธ ์ ์์ง๋ง, ์ผ๋ฐ์ ์ธ ์ํฉ์์ ์ฝ๋๋ฅผ ์ฝ์ ๋๋ isMockServer ํจ์๊ฐ ์๋๋ฅผ ์ ๋๋ก ๋๋ฌ๋ด๋ฉด ๊ตฌํ๋ถ๋ ๋ ธ์ถํ์ง ์์ ์ฝ๋ ์ฌ๋์ด ๋ชจ๋ฅด๋๋ก ํ๋ ๊ฒ ๋ ์ข๋ค๊ณ ์๊ฐํด์.
์๊ณ ๋ง์ผ์ จ์ต๋๋ค !! ํ ๊ฐ์ง ๊ถ๊ธํ ์ ์ ์ ๋ ์๋ฒ์ฃผ์๋ฅผ ๋ฏผ๊ฐํ ๋ด์ฉ์ผ๋ก ๊ฐ์ฃผํด์ ์์ ์ ์งํํ ๋, env file์ ํฌํจ์ํค๋ ํธ์ ๋๋ค. ์๋ฒ ์ฃผ์๋ฅผ ๋ ธ์ถ์์ผ๋ ๊ด์ฐฎ๋ค๊ณ ์๊ฐํ์ ์ด์ ๋ฅผ ์ฌ์ญค๋ณผ ์ ์์๊น์? |
Co-authored-by: yougyung <[email protected]>
๐ ์์ ๋ด์ฉ
๋ฐฐํฌ ๋งํฌ: https://myongji-graduate-next.vercel.app/
๐ ๋์์ด ํ์ํ ๋ถ๋ถ
์ถ๊ฐ ์๋ด ์ฌํญ
NEXT_PUBLIC_API_MOCKING=enable