Skip to content

Commit 4789a20

Browse files
milooyyurimautofix-ci[bot]
authored
fix: TIL > subpath 404 issue, clean vercel.json (#511)
* feat:vercel.json 파일에서 리다이렉트 제거 및 bundling, code-quality 관련 vercel.json 파일 삭제 * fix: vercel.json에서 리다이렉트 경로를 수정하여 index.html로 변경 * fix: vercel.json에서 리다이렉트 경로를 정규 표현식으로 수정하여 더 유연한 매칭 구현 * fix: vercel.json에서 리다이렉트 경로를 정규 표현식으로 수정하여 더 유연한 매칭 구현 * feat: redirects 살리기, 테스트용으로 텍스트 수정 * fix: fundamentals 가 붙지 않은 redirect경로도 rewrites룰 추가 * feat: :path(.*)로 해보기 * feat: missing 추가 * feat: today-i-learned 관련 source 3개 추가 * feat: outputDirectory 를 dist로 * feat: fundamentlas 프리픽스 제거 * [autofix.ci] apply automated fixes * chore: outputDirectory추가 * feat: remove til asset --------- Co-authored-by: yurim <yurim@toss.im> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 7b53720 commit 4789a20

File tree

5 files changed

+14
-31
lines changed

5 files changed

+14
-31
lines changed

fundamentals/bundling/vercel.json

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

fundamentals/code-quality/vercel.json

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

fundamentals/today-i-learned/src/components/features/auth/UnauthenticatedState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function UnauthenticatedState() {
77

88
return (
99
<div className={container}>
10-
<span className={title}>오늘 배운 내용을 기록하려면 로그인해 주세요</span>
10+
<span className={title}>오늘 배운 내용을 기록하려면 로그인 해주세요</span>
1111

1212
<Button onClick={login} variant="primary" size="lg" className={button}>
1313
로그인하기

fundamentals/today-i-learned/src/components/features/challenge/MonthlyChallenge.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,3 @@ const skeletonDay = css({
313313
borderRadius: "50%",
314314
animation: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
315315
});
316-
317-
const emptyCell = css({
318-
width: "3.5rem",
319-
height: "3.5rem"
320-
});

vercel.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"outputDirectory": "./dist/fundamentals",
23
"redirects": [
34
{
45
"source": "/",
@@ -7,22 +8,25 @@
78
}
89
],
910
"rewrites": [
10-
{ "source": "/(.*)", "destination": "/" },
1111
{
12-
"source": "/fundamentals/code-quality/:path*",
13-
"destination": "/dist/fundamentals/code-quality/:path*"
12+
"source": "/code-quality/:path*",
13+
"destination": "/code-quality/:path*"
1414
},
1515
{
16-
"source": "/fundamentals/bundling/:path*",
17-
"destination": "/dist/fundamentals/bundling/:path*"
16+
"source": "/bundling/:path*",
17+
"destination": "/bundling/:path*"
1818
},
1919
{
20-
"source": "/fundamentals/today-i-learned/:path*",
21-
"destination": "/dist/fundamentals/today-i-learned/:path*"
20+
"source": "/a11y/:path*",
21+
"destination": "/a11y/:path*"
2222
},
2323
{
24-
"source": "/code-quality/:path*",
25-
"destination": "/dist/fundamentals/code-quality/:path*"
24+
"source": "/today-i-learned/:path*",
25+
"destination": "/today-i-learned/index.html"
26+
},
27+
{
28+
"source": "/(.*)",
29+
"destination": "/"
2630
}
2731
]
2832
}

0 commit comments

Comments
 (0)