Skip to content

Commit 7921504

Browse files
authored
Merge branch 'develop' into Refactor/modalAction
2 parents c9ee16a + 405df36 commit 7921504

File tree

9 files changed

+19
-27
lines changed

9 files changed

+19
-27
lines changed

components/Link/AddLinkInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ const AddLinkInput = ({ folderList }: FolderListData) => {
3535
};
3636

3737
return (
38-
<div className="flex bg-white items-center w-full lg:max-w-[800px] md:max-w-[704px] sm:max-w-[325px] h-[69px] lg:px-5 md:px-5 sm:px-[10px] border border-blue-500 rounded-[10px] md:w-[704px] sm:w-[325px] sm:h-[53px] transition-all">
38+
<div className="flex bg-white justify-between items-center w-full lg:max-w-[800px] md:max-w-[704px] sm:max-w-[325px] h-[69px] lg:px-5 md:px-5 sm:px-[10px] border border-blue-500 rounded-[10px] md:w-[704px] sm:w-[325px] sm:h-[53px] transition-all">
3939
<Image src="/icons/link.svg" width={20} height={20} alt="link icon" />
4040
<input
4141
onChange={handleChange}
4242
onKeyDown={handleKeyDown}
4343
value={link}
4444
placeholder="링크를 추가해 보세요."
45-
className="flex-grow lg:ml-3 md:ml-3 sm:ml-[8px]"
45+
className="lg:ml-3 md:ml-3 sm:ml-[8px]"
4646
/>
4747
<SubmitButton
4848
onClick={handleClick}

lib/api/axiosInstanceApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import axios from "axios";
22

33
const axiosInstance = axios.create({
4-
baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000",
4+
baseURL: process.env.NEXT_PUBLIC_API_URL || "/",
55
});
66

77
export const proxy = axios.create({
88
// 배포 이후에는 배포된 URL로 변경해야 함.
9-
baseURL: "http://localhost:3000",
9+
baseURL: "https://linkbrary-9-99.vercel.app",
1010
});
1111

1212
proxy.interceptors.response.use(

pages/_app.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ export default function App({ Component, pageProps }: AppProps) {
1414
<>
1515
<Head>
1616
<meta property="og:type" content="website" />
17-
{/* <meta property="og:url" content="https://linkbrary.app" /> 배포 후 실제 도메인으로 변경 필요 */}
17+
<meta property="og:url" content="https://linkbrary-9-99.vercel.app/" />
1818
<meta property="og:title" content="Linkbrary" />
1919
<meta
2020
property="og:description"
2121
content="나만의 링크를 관리하는 Linkbrary"
2222
/>
2323
<meta property="og:image" content="/images/home_main.png" />
24+
<meta
25+
name="viewport"
26+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
27+
/>
2428
<title>Linkbrary</title>
2529
</Head>
2630

pages/api/auth/sign-in/google.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1313
const clientId = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID;
1414
const clientSecret = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_SECRET;
1515
const redirectUri =
16-
process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI_SIGN_IN ||
17-
"http://localhost:3000/";
16+
process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI_SIGN_IN || "/";
1817

1918
if (!clientId || !clientSecret) {
2019
return res
@@ -59,7 +58,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
5958
path: "/",
6059
})
6160
);
62-
return res.redirect("http://localhost:3000");
61+
return res.redirect("/");
6362
}
6463
} catch (loginError: any) {
6564
return res.redirect("/signup");

pages/api/auth/sign-in/kakao.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1111
}
1212

1313
const redirectUri =
14-
process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URI_SIGN_IN ||
15-
"http://localhost:3000/";
14+
process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URI_SIGN_IN || "/";
1615

1716
try {
1817
const loginResponse = await axiosInstance.post("/auth/sign-in/kakao", {
@@ -32,7 +31,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
3231
path: "/",
3332
})
3433
);
35-
return res.redirect("http://localhost:3000");
34+
return res.redirect("/");
3635
}
3736
} catch (loginError: any) {
3837
console.error(

pages/api/auth/sign-up/google.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1818
const clientId = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID;
1919
const clientSecret = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_SECRET;
2020
const redirectUri =
21-
process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI_SIGN_UP ||
22-
"http://localhost:3000/";
21+
process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI_SIGN_UP || "/";
2322

2423
if (!clientId || !clientSecret) {
2524
return res
@@ -51,7 +50,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
5150
const signUpResponse = await axiosInstance.post("/auth/sign-up/google", {
5251
name: name || "사용자",
5352
token: id_token,
54-
redirectUri: "http://localhost:3000",
53+
redirectUri: "/",
5554
});
5655

5756
const accessToken = signUpResponse.data.access_token;

pages/api/auth/sign-up/kakao.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
1111
}
1212

1313
const redirectUri =
14-
process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URI_SIGN_UP ||
15-
"http://localhost:3000/";
14+
process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URI_SIGN_UP || "/";
1615

1716
// 회원가입 시도
1817
try {
@@ -34,7 +33,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
3433
path: "/",
3534
})
3635
);
37-
return res.redirect("http://localhost:3000");
36+
return res.redirect("/");
3837
}
3938
} catch (signUpError: any) {
4039
console.error(

pages/signup/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ const SignupPage = () => {
5757
error={errors.password}
5858
/>
5959
<AuthInput
60-
text="비밀번호"
60+
text="비밀번호 확인"
6161
type="password"
6262
name="passwordConfirm"
63-
placeholder="비밀번호를 입력해주세요."
63+
placeholder="비밀번호를 한번 더 입력해주세요."
6464
value={values.passwordConfirm}
6565
onChange={handleChange}
6666
onBlur={handleBlur}

test.http

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)