Skip to content

Commit dcf511a

Browse files
V48 (impl-only): Point Vercel at apps/uapi monorepo root
Encode monorepo install/build in apps/uapi/vercel.json and document Root Directory apps/uapi for green deploys.
1 parent b23ef75 commit dcf511a

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

.docs/VERCEL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ Failure telemetry for sandbox create/run is surfaced through deposit pipeline UI
7575
## 3. App deploy (`apps/uapi`)
7676

7777
- Next.js App Router commercial site: packs, reads, deposits, docs, conversations, auxillaries, APIs.
78-
- Vercel project **Root Directory** must be `apps/uapi` after monorepo reorg.
78+
- Vercel project **Root Directory** = `apps/uapi` (required; monorepo layout).
79+
- In-repo deploy config: `apps/uapi/vercel.json`
80+
- **Install:** monorepo root `pnpm install --frozen-lockfile` (workspace packages)
81+
- **Build:** `pnpm run build` in `apps/uapi`
7982
- Serverless/edge constraints: force sandbox host on serverless; LocalHost is local-only.
8083

8184
Env of interest (non-exhaustive): public product flags, Supabase public keys,

apps/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ pnpm --dir apps/chatgpt test
2727

2828
## Vercel
2929

30-
Set the Vercel project **Root Directory** to `apps/uapi` (was `uapi`).
30+
Project **Root Directory** must be `apps/uapi`. Monorepo install/build
31+
commands live in `apps/uapi/vercel.json` (install from repo root via pnpm
32+
workspace, then `pnpm run build` in the app).

apps/uapi/vercel.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"framework": "nextjs",
4+
"installCommand": "cd ../.. && corepack enable && pnpm install --frozen-lockfile",
5+
"buildCommand": "pnpm run build",
6+
"build": {
7+
"env": {
8+
"NODE_VERSION": "22"
9+
}
10+
}
11+
}

vercel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
23
"build": {
34
"env": {
45
"NODE_VERSION": "22"

0 commit comments

Comments
 (0)