Repository navigation
perf(build): future.faster 활성화로 빌드 가속 - #16
Merged
Merged
Conversation
…-notion] Docusaurus 3.10에서 stable이 된 faster 빌드 인프라(@docusaurus/faster 3.10.1) 활성화. webpack→Rspack, Babel/Terser→SWC, cssnano→Lightning CSS 전환으로 ko/en 두 locale 빌드의 webpack Client compile(~70초) 단축 기대. 검증: pr-build.yml에서 GH Actions 환경의 빌드 통과 여부 확인 후 main 머지. 실패 시 faster: false 로 즉시 롤백.
옛 i18n 구조의 잔재인 docs_en/ 경로가 main에 없어 git checkout 단계에서 항상 실패. 현재 영문 번역은 i18n/en/(design 브랜치 관리)에 있고 main의 콘텐츠 디렉토리는 docs/ blog/ static/img/ 셋.
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 free
to 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.
변경
docusaurus.config.ts의future.faster: false→true@docusaurus/faster@3.10.1은 이미 설치돼 있어 패키지 변경 없음배경
현재 deploy.yml의 `npm run build`가 약 82초 (ko 42초 + en 39초 순차) 소요.
대부분 webpack Client compile에서 발생.
Docusaurus 3.10에서 stable이 된 `future.faster`를 켜면 webpack→Rspack,
Babel/Terser→SWC, cssnano→Lightning CSS, MDX cross-locale 캐시까지 활성화되어
빌드가 50~70% 단축될 것으로 기대.
검증
롤백
GH Actions에서 SIGBUS 등 네이티브 바이너리 호환성 문제 발생 시
`future.faster: false` 로 즉시 복귀.