@@ -147,9 +147,12 @@ build needs `global.json` and `shared/`. Its catch-all rewrite serves the API; t
147147is for a ** separate backend Vercel project** , not the existing Next.js project. Container Runtime
148148and Services are currently beta features.
149149
150- 1 . In a separate checkout or worktree, link Vercel CLI to a dedicated backend project with
151- ` vercel link ` . Set that project's Root Directory to the repository root. A separate checkout
152- keeps its local ` .vercel ` project link apart from the frontend's link.
150+ 1 . Use a separate checkout or worktree for a dedicated backend project. Create the project
151+ with ` vercel project create procoderji-api --scope YOUR_TEAM ` if it does not exist, then link
152+ it explicitly with ` vercel link --yes --project procoderji-api --scope YOUR_TEAM ` . A plain
153+ ` vercel link ` can select the frontend project from the Git remote. Set the backend project's
154+ Root Directory to the repository root. A separate checkout keeps its local ` .vercel ` project
155+ link apart from the frontend's link.
1531562 . Set these values in the backend project's environment settings:
154157
155158 | Variable | Value |
@@ -171,20 +174,29 @@ and Services are currently beta features.
171174 docker run --rm --env Database__Provider --env ConnectionStrings__Platform --env Database__Name --env PublicOrigin procoderji-api:local --migrate
172175 ```
173176
174- 4 . Deploy using the optional configuration from the repository root:
177+ 4 . In the ** backend-only checkout** , copy the optional configuration to ` vercel.json ` so the
178+ remote build reads the service configuration, then deploy from the repository root. Preserve
179+ any existing ` vercel.json ` before copying:
175180
176181 ``` bash
177- vercel deploy --local-config vercel.backend.json --prod
182+ cp vercel.backend.json vercel.json
183+ vercel deploy --project procoderji-api --scope YOUR_TEAM --prod
178184 ```
179185
186+ In PowerShell, use ` Copy-Item vercel.backend.json vercel.json ` . Keep this generated
187+ ` vercel.json ` local to the backend checkout; committing its catch-all API rewrite to the
188+ shared branch would change frontend deployments. Keep the repository's ` .vercelignore ` in
189+ place: Git ignore rules alone do not exclude all local operator files from Vercel CLI uploads.
190+
1801915 . Set the frontend project's server-only ` DOTNET_API_URL ` to the backend's reachable HTTPS
181192 origin, redeploy the frontend, and verify the callback and account flows. Deployment
182193 Protection must allow the frontend's server requests to reach the backend. The OAuth
183194 callback remains on the frontend origin; do not register the backend URL as the callback.
184195
185196The optional configuration is an operator template; no Vercel project is created or changed by
186- committing it. It has not been verified against a live Vercel account. Review beta availability,
187- project settings and database connectivity before using it for production accounts.
197+ committing it. Verify the deployed API's health, session endpoint, Google redirect and database
198+ connectivity before enabling frontend account traffic. A successful build alone does not
199+ establish that the container serves requests.
188200
189201The repository does not provision a cloud account, a database, DNS or Google credentials. A
190202successful image build or CI check does not verify live Google consent in the deployed system.
0 commit comments