fix: UX 리뷰의 출시 차단 다섯 건을 고친다
B1. 검증·미리보기 화면이 CSS 없이 배포됐다. `workflow.module.css` 를 import 하는 파일이 하나도 없었고, Vite 의 CSS Module 은 import 되어야 번들에 들어간다. 제목이 62px 가 아니라 16px 로 나왔고 미리보기의 링크 두 개가 공백 없이 붙었다. 규칙이 전부 `:global()` 이었으므로 모듈일 이유가 없다 — studio.css 로 옮겼다. B2. Asset 라이브러리에 스타일이 없고 진입 경로도 없었다. 네 클래스에 규칙이 하나도 없어 key·상태·사용 수가 공백 없이 이어 붙었다. 스무 개짜리 목록에 썸네일도 없어 무엇을 고르는지 눌러 봐야 알았다. 내비게이션에도 없어서 URL 을 직접 쳐야 닿았다 — "정리하는 화면" 에 정리하러 갈 길이 없었다. B3. 삭제에 확인이 없었다. 문서·주제·프로젝트·릴리즈·Asset 전부 한 번에 영구 삭제였고, 그 「삭제」가 행에서 시각적으로 가장 강한 요소였다(16px/600 빨강). 정작 그 행에서 해야 할 일인 「검증하기」는 13px/400 이었다. 확인 창을 하나 만들어 다섯 곳에 붙이고, 행의 우선순위를 되돌렸다. B4(일부). robots.txt 가 광고하던 sitemap 이 404 였다. 무엇이 게시됐는지는 서버만 알므로 정적 파일이 아니라 조회로 만든다(백엔드 커밋 참조). robots.txt 가 그 주소를 가리키게 했다. B5. 라우트 프리픽스 밖 URL 이 nginx 의 맨 `Not Found` 로 끝났다. 404 상태는 그대로 두고 — 크롤러에게 링크가 깨졌다고 말하는 것이 그것이다 — 본문만 앱을 주도록 `error_page 404 @not_found` 를 뒀다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PTnWufiY9ATv57egkKKVAV
This commit is contained in:
co-authored by
Claude Opus 5
parent
28dce83398
commit
bb6eba00db
@@ -108,13 +108,6 @@ async function main(): Promise<void> {
|
||||
const rawBase = process.env["VITE_ROUTER_BASE_PATH"] ?? "/";
|
||||
const basePath = rawBase.endsWith("/") ? rawBase.slice(0, -1) : rawBase;
|
||||
|
||||
const [notFoundType, notFoundCharsetParam] = contract.notFound.contentType
|
||||
.split(";")
|
||||
.map((part) => part.trim());
|
||||
const notFoundCharset = (notFoundCharsetParam ?? "charset=utf-8")
|
||||
.replace(/^charset=/i, "")
|
||||
.toLowerCase();
|
||||
|
||||
// Regex locations now, matching the Studio half: the contract declares which
|
||||
// paths the router serves, not which ones the fixture happened to contain, so
|
||||
// a record published after this build is served instead of 404ed at the edge.
|
||||
@@ -217,14 +210,25 @@ ${studioLocations}
|
||||
add_header Cache-Control "${assetCache}" always;
|
||||
}
|
||||
|
||||
# Anything else is not a route this deployment serves.
|
||||
# 이 배포가 서비스하는 라우트가 아닌 주소.
|
||||
#
|
||||
# 상태 코드는 404 그대로 둔다 — 크롤러와 우리에게 링크가 깨졌다고 말해 주는 것이 그것이고,
|
||||
# 200 껍데기를 주면 그 신호가 사라진다. 다만 본문은 앱을 준다. 예전에는 nginx 의 맨
|
||||
# "Not Found" 가 흰 화면으로 나가서, 오타 링크 하나에 헤더도 내비도 없는 막다른 길이 됐다.
|
||||
# 앱에는 path "*" 로 선언된 404 라우트가 이미 있고 청크도 빌드되는데 닿을 길이 없었다.
|
||||
#
|
||||
# error_page 404 @not_found 는 "=" 없이 쓰면 원래 상태 코드를 유지한다.
|
||||
error_page 404 @not_found;
|
||||
|
||||
location @not_found {
|
||||
${secure}
|
||||
add_header Cache-Control "${indexCache}" always;
|
||||
# index.html 이 없으면 여기서 끝난다. recursive_error_pages 는 기본이 off 라 되돌지 않는다.
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
# The contract states the content type with its charset attached
|
||||
# (text/plain;charset=UTF-8), but nginx takes the two separately —
|
||||
# default_type rejects a parameter outright.
|
||||
default_type ${notFoundType};
|
||||
charset ${notFoundCharset};
|
||||
return ${contract.notFound.status} "${contract.notFound.body}";
|
||||
return ${contract.notFound.status};
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user