diff --git a/README.md b/README.md index 38abf5c..112b373 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,8 @@ Cloudflare API Token에는 최소한 다음 권한이 필요합니다. - Account → Workers Scripts → Edit - Account → Workers R2 Storage → Edit - Account → Account Settings → Read -- Custom Domain route를 Actions에서 변경할 경우 Zone → Workers Routes → Edit + +스테이징 `qa-test.baroncs.co.kr`과 운영 `qa.baroncs.co.kr`의 도메인 연결은 Cloudflare 대시보드에서 관리합니다. 두 Wrangler 설정 모두 `route`/`routes`를 생략하고 `workers_dev=false`로 지정해 기존 연결을 유지합니다. 배포 시 Zone 라우팅 API를 호출하지 않으므로 이 작업에 Zone 권한을 추가할 필요가 없습니다. [Cloudflare 설정 안내](https://developers.cloudflare.com/workers/wrangler/configuration/#source-of-truth) `.gitea/workflows/deploy.yml`은 `main` push 또는 수동 실행 시 세션 secret을 Worker에 등록하고 R2 업로드 후 `baron-qa-gateway-test`를 배포합니다. 실제 secret 값은 로그에 출력하지 않습니다. diff --git a/wrangler.toml b/wrangler.toml index a690e75..d6ab475 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -2,11 +2,11 @@ name = "baron-qa-gateway-test" main = "src/index.js" compatibility_date = "2026-09-18" account_id = "81fa2d48964d31dd0da9558f9ce601d1" +workers_dev = false preview_urls = false -routes = [ - { pattern = "qa-test.baroncs.co.kr", custom_domain = true } -] +# qa-test.baroncs.co.kr is already attached in the Cloudflare dashboard. +# Omit route/routes to preserve that connection without zone routing API calls. [vars] AUTH_REDIRECT_URI = "https://qa-test.baroncs.co.kr/auth/callback"