★★★★★
#데이터·Firebase·보안 · claude-code
Firebase Hosting 다중 사이트
같은 프로젝트 내 여러 사이트 호스팅.
#firebase-hosting#deployment
변수 1개 — 여기 채우면 아래 프롬프트에 바로 들어가요
같은 프로젝트 내 여러 사이트 호스팅.
예:
- prayer-app-blog.web.app
- prayer-app-landing.web.app
- prayer-app-api-docs.web.app
firebase.json:
```json
{
"hosting": [
{
"target": "blog",
"public": "web/blog/build",
"rewrites": [
{ "source": "**", "destination": "/index.html" }
]
},
{
"target": "landing",
"public": "web/landing/build",
"rewrites": [
{ "source": "**", "destination": "/index.html" }
]
}
]
}
```
배포:
```bash
firebase deploy --only hosting:blog
firebase deploy --only hosting:landing
```
{{SITE_NAMES}}에 맞춰 다중 사이트 설정할까?
쓰는 법 — 위 칸에 본인 값을 채우면 아래 프롬프트에 바로 반영돼요. 복사 버튼을 누르면 채워진 그대로 클립보드에 담기니까, claude-code(또는 본인이 쓰는 AI)에 붙여넣기만 하면 됩니다. 변수가 없으면 그냥 복사해서 쓰세요.

