From d3bcc61609ea94845cfdbad3adfb2f4e851d7f7c Mon Sep 17 00:00:00 2001 From: Haewon Kam Date: Wed, 5 Aug 2026 16:36:40 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20landing:=20Vercel=20=EB=B0=B0?= =?UTF-8?q?=ED=8F=AC=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 랜딩은 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 --- landing/.gitignore | 1 + landing/vercel.json | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 landing/vercel.json diff --git a/landing/.gitignore b/landing/.gitignore index 27d1340..730170c 100644 --- a/landing/.gitignore +++ b/landing/.gitignore @@ -1,3 +1,4 @@ node_modules build .react-router +.vercel diff --git a/landing/vercel.json b/landing/vercel.json new file mode 100644 index 0000000..5781726 --- /dev/null +++ b/landing/vercel.json @@ -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" }] +}