Build and Ignored Build Step behavior for the Encore Health OS app are defined in the repo’s vercel.json. Keep Vercel Project Settings in sync with that file so deployments are consistent and the “Configuration Settings differ” warning does not appear.Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Project Settings alignment
In Vercel → Project → Settings → General and Build & Development, set:| Setting | Value (matches vercel.json) |
|---|---|
| Framework Preset | Vite |
| Build Command | npm run build |
| Output Directory | dist |
| Install Command | npm ci |
| Ignored Build Step | Custom, with: git diff --quiet HEAD^ HEAD -- src/ public/ vite.config.ts package.json vercel.json index.html |
| Node.js Version | 22.x (aligned with package.json engines.node) |
Ignored Build Step behavior
- Exit 0 → build is skipped.
- Exit 1 → build runs.
src/, public/, vite.config.ts, package.json, vercel.json, and index.html trigger a build; docs/specs-only changes skip it. The same command is in vercel.json so behavior is version-controlled for preview and production.
Build troubleshooting
- Module not found (e.g.
sanitize-error-message): Imports must resolve to real files. Use@/shared/lib/error-utilsforsanitizeErrorMessage; there is nosanitize-error-messagemodule. Fix any invalid or duplicate imports and re-runnpm run buildlocally before pushing. - npm deprecation warnings during install: Keep
engines.nodein the 22–24 range perpackage.json. Node version for Vercel builds is controlled via Project Settings → Build & Development → Node.js Version and viapackage.jsonengines.node(which can override Project Settings). Do not usevercel.jsonbuild.env.NODE_VERSIONas it is ineffective for runtime selection. Spreadsheet code uses@wekanteam/exceljs(maintained fork).package.jsonoverrides bump nestedglob/rimraf/source-mapwhere safe; some install-time warnings can still appear from deep dev-tool trees.