ci(deploy): CloudFront 라우팅 함수 코드 자동 동기화#1
Conversation
- deploy-frontend 잡이 S3 sync 후 cloudfront-rewrite.js 를 함수에 반영한다. - infra/cloudfront-rewrite.js 를 git 추적 대상으로 추가
There was a problem hiding this comment.
Code Review
This pull request introduces a CloudFront Function (infra/cloudfront-rewrite.js) to handle static export routing corrections, rewriting dynamic routes to placeholder HTML files and appending index.html to directory paths. The review feedback correctly identifies compatibility issues with the cloudfront-js-1.0 runtime (ES5.1), pointing out that ES6 methods String.prototype.includes and String.prototype.endsWith are unsupported and will cause runtime errors. The reviewer provided actionable suggestions to replace these with ES5-compatible alternatives like indexOf and slice.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
요약
정적 export 라우팅용 CloudFront Function(
convene-rewrite) 코드를 배포 파이프라인에서 자동 동기화한다. 지금까진 콘솔에 수동으로 붙여넣어 publish 해야 했다.설계 노트
cloudfront-js-1.0/2.0)을 하드코딩하면 LIVE 함수를 깰 위험이 있어,describe로 가져온 기존FunctionConfig를 그대로 되돌려 코드만 교체한다.