Skip to content

refactor: 웹사이트와 Worker를 단일 Astro+Cloudflare 프로젝트로 통합#65

Merged
DaleSeo merged 1 commit intomainfrom
refactor/unified-deployment
Apr 12, 2026
Merged

refactor: 웹사이트와 Worker를 단일 Astro+Cloudflare 프로젝트로 통합#65
DaleSeo merged 1 commit intomainfrom
refactor/unified-deployment

Conversation

@DaleSeo
Copy link
Copy Markdown
Member

@DaleSeo DaleSeo commented Apr 12, 2026

3개로 분리된 패키지(root, site/, worker/)를 하나의 Astro + @astrojs/cloudflare 프로젝트로 통합합니다. wrangler.jsonc를 루트에 두고 단일 빌드/배포 파이프라인(bun run deploy)으로 변경하여, coffee.dalestudy.com에서 "Method Not Allowed"가 발생했던 것과 같은 구조적 문제를 방지하고, 프로젝트 구조를 단순화하기 위함입니다.

주요 변경:

  • src/match/ (매칭 로직, GitHub Actions 전용)
  • site/src/src/ (Astro 소스)
  • worker/src/src/lib/discord/ + src/pages/api/discord.ts (Astro 서버 엔드포인트)
  • 3개 package.json → 1개 통합
  • deploy.yml 제거

Discord Interactions Endpoint URL도 https://coffee.dalestudy.com/api/discord로 변경 완료했습니다.

Testing

  1. bun install && bun run build로 빌드가 정상 완료되는지 확인합니다.
  2. bun test로 59개 테스트가 모두 통과하는지 확인합니다.
  3. bun run lint로 lint 오류가 없는지 확인합니다.
  4. 브라우저에서 https://coffee.dalestudy.com에 접속하여 사이트가 정상 표시되는지 확인합니다.
  5. Discord에서 /coffee join 명령어를 실행하여 정상 동작하는지 확인합니다.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 12, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
coffee c5d321d Commit Preview URL

Branch Preview URL
Apr 12 2026, 01:25 PM

@DaleSeo DaleSeo changed the title refactor: 사이트와 Worker를 단일 Astro+Cloudflare 프로젝트로 통합 refactor: 웹사이트와 Worker를 단일 Astro+Cloudflare 프로젝트로 통합 Apr 12, 2026
@DaleSeo DaleSeo force-pushed the refactor/unified-deployment branch from b8baefe to e840cf7 Compare April 12, 2026 13:12
@DaleSeo DaleSeo requested a review from sounmind April 12, 2026 13:13
@DaleSeo DaleSeo self-assigned this Apr 12, 2026
@DaleSeo DaleSeo force-pushed the refactor/unified-deployment branch 4 times, most recently from accbcff to f48aae6 Compare April 12, 2026 13:21
3개로 분리된 패키지(root, site, worker)를 하나의 Astro + @astrojs/cloudflare
프로젝트로 통합합니다. wrangler.jsonc를 루트에 두고 단일 빌드/배포 파이프라인으로
변경하여 사이트 빌드 누락 같은 구조적 문제를 방지합니다.

- src/ → match/ (매칭 로직, GitHub Actions 전용)
- site/src/ → src/ (Astro 소스)
- worker/src/ → src/lib/discord/ (Discord 핸들러)
- worker/src/index.ts → src/pages/api/discord.ts (Astro 서버 엔드포인트)
- 3개 package.json → 1개 통합
- deploy.yml 단순화: bun run deploy (astro build + wrangler deploy)
@DaleSeo DaleSeo force-pushed the refactor/unified-deployment branch from f48aae6 to c5d321d Compare April 12, 2026 13:24
@DaleSeo
Copy link
Copy Markdown
Member Author

DaleSeo commented Apr 12, 2026

@sounmind Discord Interactions Endpoint URL 수정이 수반되는 작업이라서 승인없이 우선 병합하도록 하겠습니다. 변경할 부분이나 피드백이 있으시면 댓글 남겨주세요. 별도로 Follow up 하도록 할께요!

@DaleSeo DaleSeo merged commit 2f71fbb into main Apr 12, 2026
2 checks passed
@DaleSeo DaleSeo deleted the refactor/unified-deployment branch April 12, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant