refactor: 웹사이트와 Worker를 단일 Astro+Cloudflare 프로젝트로 통합#65
Merged
Conversation
Deploying with
|
| 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 |
b8baefe to
e840cf7
Compare
accbcff to
f48aae6
Compare
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)
f48aae6 to
c5d321d
Compare
Member
Author
|
@sounmind Discord Interactions Endpoint URL 수정이 수반되는 작업이라서 승인없이 우선 병합하도록 하겠습니다. 변경할 부분이나 피드백이 있으시면 댓글 남겨주세요. 별도로 Follow up 하도록 할께요! |
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.
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 서버 엔드포인트)package.json→ 1개 통합deploy.yml제거Discord Interactions Endpoint URL도
https://coffee.dalestudy.com/api/discord로 변경 완료했습니다.Testing
bun install && bun run build로 빌드가 정상 완료되는지 확인합니다.bun test로 59개 테스트가 모두 통과하는지 확인합니다.bun run lint로 lint 오류가 없는지 확인합니다.https://coffee.dalestudy.com에 접속하여 사이트가 정상 표시되는지 확인합니다./coffee join명령어를 실행하여 정상 동작하는지 확인합니다.