Cloudflare Pages Project Migration
Cloudflare Pages projects cannot be renamed. To change the project name, create a new project and migrate traffic.
English
Use case
Migrate prego-devdoc to a brand-neutral name like platform-devdoc or internal-docs.
Status: Migration to
platform-devdoccompleted. See Cloudflare inventory for current project names.
Prerequisites
- Cloudflare account access (Pages, DNS).
- Git repository access (
Pregoi/Prego). - Custom domain DNS control (if applicable).
Procedure
1. Create new Pages project
- Go to Cloudflare Dashboard → Workers & Pages → Create application → Pages.
- Connect to Git: select repository (
Pregoi/Prego). - Configure build settings:
- Project name:
platform-devdoc(or desired name) - Production branch:
main - Build command:
pnpm install --frozen-lockfile && pnpm run build:docs - Build output directory:
docs/dist - Root directory:
/(monorepo root)
- Project name:
- Add environment variables if needed (copy from old project).
- Save and deploy.
2. Verify new project
- Wait for initial deployment to complete.
- Visit
https://platform-devdoc.pages.dev(new*.pages.devURL). - Verify all pages render correctly.
3. Migrate custom domain (if applicable)
If devdoc.pregoi.com points to the old project:
- In old project (
prego-devdoc): Custom domains → Removedevdoc.pregoi.com. - In new project (
platform-devdoc): Custom domains → Adddevdoc.pregoi.com. - Cloudflare updates the CNAME automatically if using Cloudflare DNS.
- Wait for DNS propagation (usually instant with Cloudflare proxy).
4. Update CI/CD references
Search and replace in .github/workflows/:
rg 'prego-devdoc' .github/workflows --files-with-matchesUpdate any hardcoded project names in:
wrangler pages deploy --project-name=...- GitHub Actions that reference the project
5. Update documentation
- Update Cloudflare inventory with new project name.
- Update any internal bookmarks or links.
6. Delete old project
After verifying:
- Confirm no traffic to old
*.pages.devURL. - In old project settings: Delete project.
Rollback
If issues occur:
- Re-add custom domain to old project.
- Old
*.pages.devURL remains functional until project deletion.
한국어
Cloudflare Pages 프로젝트는 이름 변경이 불가능하다. 이름을 바꾸려면 새 프로젝트를 만들고 트래픽을 이전한다.
사용 사례
prego-devdoc 을 platform-devdoc 또는 internal-docs 같은 브랜드 중립 이름으로 이전.
상태:
platform-devdoc으로 마이그레이션 완료. 현재 프로젝트 이름은 Cloudflare inventory 참고.
전제 조건
- Cloudflare 계정 접근 (Pages, DNS).
- Git 저장소 접근 (
Pregoi/Prego). - 커스텀 도메인 DNS 제어 (해당 시).
절차
1. 새 Pages 프로젝트 생성
- Cloudflare Dashboard → Workers & Pages → Create application → Pages.
- Git 연결: 저장소 선택 (
Pregoi/Prego). - 빌드 설정:
- Project name:
platform-devdoc(또는 원하는 이름) - Production branch:
main - Build command:
pnpm install --frozen-lockfile && pnpm run build:docs - Build output directory:
docs/dist - Root directory:
/(모노레포 루트)
- Project name:
- 필요 시 환경 변수 추가 (기존 프로젝트에서 복사).
- 저장 후 배포.
2. 새 프로젝트 검증
- 초기 배포 완료 대기.
https://platform-devdoc.pages.dev(새*.pages.devURL) 방문.- 모든 페이지가 정상 렌더링되는지 확인.
3. 커스텀 도메인 이전 (해당 시)
devdoc.pregoi.com 이 기존 프로젝트를 가리키는 경우:
- 기존 프로젝트 (
prego-devdoc): Custom domains →devdoc.pregoi.com제거. - 새 프로젝트 (
platform-devdoc): Custom domains →devdoc.pregoi.com추가. - Cloudflare DNS 사용 시 CNAME 자동 업데이트.
- DNS 전파 대기 (Cloudflare 프록시 사용 시 보통 즉시).
4. CI/CD 참조 업데이트
.github/workflows/ 에서 검색 및 치환:
rg 'prego-devdoc' .github/workflows --files-with-matches다음 항목의 하드코딩된 프로젝트명 업데이트:
wrangler pages deploy --project-name=...- 프로젝트를 참조하는 GitHub Actions
5. 문서 업데이트
- Cloudflare inventory 에 새 프로젝트명 반영.
- 내부 북마크·링크 업데이트.
6. 기존 프로젝트 삭제
검증 후:
- 기존
*.pages.devURL로의 트래픽이 없음을 확인. - 기존 프로젝트 설정: Delete project.
롤백
문제 발생 시:
- 기존 프로젝트에 커스텀 도메인 재추가.
- 기존
*.pages.devURL은 프로젝트 삭제 전까지 유효.
Related
- Cloudflare inventory — Workers & Pages project registry.
- Fork checklist — Cloudflare account IDs, zone names, Worker names.