[chore] landing: Vercel 배포 설정 추가
랜딩은 ssr:false + prerender 인 SSG 라 정적 산출물만 서빙하면 된다. 프레임워크 자동 감지에 맡기면 React Router 를 SSR 로 잡을 수 있어 framework:null 로 명시하고, outputDirectory 를 build/client 로 고정한다. SPA 리라이트는 Dockerfile.prod 의 nginx try_files 와 동등하게 맞췄다. .vercel 은 gitignore. 프로젝트·조직 ID 가 들어가는 로컬 링크 파일이다. 배포 메모: - 저장소가 Gitea 라 Vercel Git 연동(푸시 시 자동 배포)은 안 된다. CLI 수동 배포. - 새 프로젝트의 첫 배포는 --prod 없이도 production 으로 승격되니, preview 를 원하면 --target=preview 를 명시할 것. - preview 배포는 Vercel 이 x-robots-tag: noindex 를 자동으로 붙인다. 색인 차단 목적으로 public/robots.txt 를 건드리지 말 것 — 출시 때 되돌리는 걸 잊는다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
55e3ab02aa
commit
d3bcc61609
1
landing/.gitignore
vendored
1
landing/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
node_modules
|
||||
build
|
||||
.react-router
|
||||
.vercel
|
||||
|
||||
7
landing/vercel.json
Normal file
7
landing/vercel.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"framework": null,
|
||||
"buildCommand": "npm run build",
|
||||
"outputDirectory": "build/client",
|
||||
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user