Skip to content

Commit 4272e42

Browse files
committed
chore(web): remove postbuild warm step and document Render Health Check approach for cache warm-up
1 parent eab2ae1 commit 4272e42

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

web/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ The following scripts are available in the `package.json`:
7676
- `test:watch`: Run unit tests in watch mode
7777
- `e2e`: Run end-to-end tests
7878
- `e2e:ui`: Run end-to-end tests with UI
79-
- `postbuild`: Warm Store cache (non-blocking)
8079
- `warm:store`: Warm Store cache via `/api/agents`
8180
- `prepare`: Install Husky for managing Git hooks
8281

@@ -93,7 +92,7 @@ The following scripts are available in the `package.json`:
9392

9493
- Script: `scripts/warm-store-cache.ts`
9594
- Local: `bun run -C web warm:store`
96-
- CI/CD: run after deploy; set `NEXT_PUBLIC_CODEBUFF_APP_URL` to your deployed base URL.
95+
- CI/CD: run after deploy; set `NEXT_PUBLIC_CODEBUFF_APP_URL` to your deployed base URL. On Render, you can simply set the Health Check Path to `/api/agents` to warm the cache automatically during deploy.
9796

9897
### E2E tests for SSR and hydration
9998

web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"build": "next build 2>&1 | sed '/Contentlayer esbuild warnings:/,/^]/d'",
1515
"start": "next start",
1616
"preview": "bun run build && bun run start",
17-
"postbuild": "bun run warm:store || true",
1817
"contentlayer": "contentlayer build",
1918
"lint": "next lint",
2019
"lint:fix": "next lint --fix",

0 commit comments

Comments
 (0)