Uh oh!
There was an error while loading. Please reload this page.
fix(ci): 배포 후 CSS 확인이 오탐을 내던 문제 - #7
Merged
Merged
Conversation
href 는 basePath 를 이미 포함한 루트 절대경로인데 base 에 다시 붙여 /CareCode_Landing/CareCode_Landing/... 을 만들고 있었다. 사이트는 멀쩡한데 검사만 404 로 실패했다. 검사가 오탐을 내면 사람이 검사를 무시하게 되고, 그러면 진짜 고장을 놓친다. 도메인 원점에 붙이고 상대·절대·전체 URL 을 모두 처리한다.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or 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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
첫 배포에서 스모크 테스트가 실패했습니다. 사이트는 멀쩡한데 검사만 틀렸습니다.
원인
추출한
href가/CareCode_Landing/_next/...처럼 basePath 를 이미 포함한 루트 절대경로인데,$base(=https://…/CareCode_Landing) 에 그대로 붙여 basePath 가 두 번 들어갔습니다.고친 것
도메인 원점을 뽑아 붙이고, 상대경로·루트절대경로·전체 URL 을 모두 처리합니다.
실패 시 실제로 시도한 URL 도 함께 출력해 다음에 원인을 바로 알 수 있게 했습니다.
검증
배포된 사이트에 고친 로직을 그대로 돌렸습니다. 7개 경로 + CSS 전부 200, 통과.