Skip to content

feat(phase-1): 정적 페이지를 Astro로 옮기고 Pages를 Actions로 고정한다 - #56

Merged
gitgitWi merged 16 commits into
mainfrom
feat/phase-1-scaffold
Oct 2, 2026
Merged

gitgitWi merged 16 commits into
mainfrom
feat/phase-1-scaffold

Conversation

@gitgitWi

@gitgitWi gitgitWi commented Sep 9, 2026

Copy link
Copy Markdown
Owner

스택: base main ← head feat/phase-1-scaffold

왜

Next.js 12 + yarn classic + JamesIves gh-pages 배포는 Astro static 전환과 bun 툴체인과 충돌한다. Phase 2(Content Collections) 전에 Astro 루트, StyleX 디자인시스템, Home/Tags 껍데기, GitHub Actions Pages 배포를 한 번에 고정해야 이후 페이즈가 같은 기준 위에서 쌓인다.

흐름

flowchart TD
  subgraph ASIS["AS-IS"]
    A1["Next pages + yarn.lock"] --> A2["JamesIves gh-pages + Node 14"]
    A2 --> A3["Astro/bun 전환 불가"]
  end
  subgraph TOBE["TO-BE"]
    B1["legacy-next 보관 + Astro 루트"] --> B2["StyleX DS + mock Home/Tags"]
    B2 --> B3["withastro/action + deploy-pages"]
    B3 -->|"성공"| B4["main 푸시 → Actions Pages"]
    B3 -->|"실패"| B5["Settings Pages Source=Actions 필요 — 사람 작업"]
  end
  style A3 fill:#ffebee,stroke:#c62828,color:#c62828
  style B4 fill:#e8f5e9,stroke:#2e7d32,color:#2e7d32
  style B5 fill:#fff3e0,stroke:#e65100,color:#e65100
Loading

효과

flowchart LR
  P["이 PR"] --> U["사용자: Home/Tags 정적 페이지 공개"]
  P --> O["운영: bun.lock 감지 Actions 배포, yarn 제거"]
  P --> Q["품질: check/format/lint/test/build-storybook + Lighthouse 100"]
Loading

범위

flowchart TD
  subgraph IN["이번 PR"]
    I1["Astro 7 static + StyleX DS + Storybook 로컬"]
    I2["Home/Tags mock + deploy.yml 교체"]
  end
  subgraph NEXT["후속"]
    N1["Content Collections — phase-2 PLAN"]
    N2["ci.yml bun 게이트 — feat/ci-gates"]
  end
  subgraph OUT["제외"]
    X1["MDX 본문 — Phase 2"]
    X2["Storybook 배포 — 전 Phase 후 이슈"]
  end
Loading

검증

$ bun run check
Result (54 files):
- 0 errors
- 0 warnings
- 0 hints

$ bunx oxfmt --check .
All matched files use the correct format.
Finished in 558ms on 80 files using 8 threads.

$ bunx oxlint .
(exit 0)

$ bun run lint:stylex
$ eslint -c eslint.stylex.config.js src
(exit 0)

$ bunx vitest run
 Test Files  1 passed (1)
      Tests  1 passed (1)

$ bun run build
7 page(s) built in 484ms
Complete!

$ bun run build-storybook
Storybook build completed successfully

$ Lighthouse (local preview)
Home perf: 100  a11y: 100
Tags perf: 100  a11y: 100

gitgitWi and others added 14 commits September 10, 2026 00:36
OpenAI Cursor 제공 종료 예정은 2026-11-12다. 리뷰마다 사용량을 LOG에 남긴다.

Co-authored-by: Cursor <cursoragent@cursor.com>
게이트가 vendored yarn을 훑지 않게 ignorePatterns를 둔다.

Co-authored-by: Cursor <cursoragent@cursor.com>
설정이 빠진 채 돌리면 vendored yarn까지 건드려 게이트가 무의미했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Storybook을 순서에 넣고, 스파이크의 CSS 연결 구멍을 게이트로 고정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
Astro 루트와 Next 파일 충돌을 막고 withastro/action이 bun.lock을 선택하게 한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
global.css 엔트리와 Base.astro import로 빌드 CSS link를 보장한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
variant prop 계약과 13개 stories를 함께 남겨 Phase 2 이전 UI 경계를 고정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
@storybook-astro/framework와 build-storybook으로 UI stories를 로컬에서 검증한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
mock 데이터로 Home, Tags, 태그별 정적 경로를 빌드하고 StyleX CSS link를 검증한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
JamesIves와 Node 14 매트릭스를 제거하고 withastro/action과 deploy-pages로 고정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
게이트 bunx oxfmt --check . 통과를 위해 신규 파일 포맷을 맞춘다.

Co-authored-by: Cursor <cursoragent@cursor.com>
tokens.test.ts가 defineVarsNested를 런타임 import할 수 있게 한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@gitgitWi gitgitWi added phase-1 Phase 1 Scaffold: Astro, StyleX DS, GitHub Pages astro Astro, StyleX, GitHub Pages labels Sep 9, 2026
@gitgitWi gitgitWi self-assigned this Sep 9, 2026
gitgitWi and others added 2 commits September 10, 2026 00:52
Co-authored-by: Cursor <cursoragent@cursor.com>
@gitgitWi
gitgitWi marked this pull request as ready for review September 9, 2026 16:11
@gitgitWi
gitgitWi added this pull request to stack #62 September 13, 2026 18:38
@gitgitWi
gitgitWi merged commit 66da08c into main Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astro Astro, StyleX, GitHub Pages phase-1 Phase 1 Scaffold: Astro, StyleX DS, GitHub Pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant