SCF
정적 사이트를 AWS S3와 CloudFront에 한 번에 배포하세요.
주요 기능
- 간편한 배포 - 명령어 하나로 배포 완료
- 빠른 업로드 - 변경된 파일만 업로드
- 자동 설정 - CloudFront CDN, SSL 인증서, 캐시 갱신 자동 처리
빠른 시작
bash
# 설치
npm install -g scf-deploy
# 프로젝트 초기화
npx scf-deploy init
# 배포
npx scf-deploy deploy기본 설정
typescript
// scf.config.ts
import { defineConfig } from 'scf-deploy';
export default defineConfig({
app: 'my-site',
region: 'ap-northeast-2',
s3: {
bucketName: 'my-site-bucket-unique-id',
},
cloudfront: {
enabled: true,
},
});필요 조건
- Node.js 18 이상
- AWS 계정 및 인증 설정 완료
문서
라이선스
MIT