TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/evidence-dev/evidence/llms.txt
Use this file to discover all available pages before exploring further.
evidence build command creates optimized production builds of your Evidence project.
Syntax
Description
This command builds your Evidence project for production deployment by:- Compiling all pages and components
- Optimizing assets and code
- Generating static HTML files
- Creating hashed data files for caching
- Copying outputs to the
./builddirectory - Automatically increases Node.js memory limit to 4096MB
Options
Enables verbose console logs during the build process. Useful for troubleshooting build issues.
Build Process
- Populates the
.evidence/templatedirectory with your project files - Syncs all watched directories (pages, components, sources, etc.)
- Runs Vite build in the template directory
- Generates content hashes for data files
- Updates the manifest with hashed file paths
- Copies the final build to
./build(orEVIDENCE_BUILD_DIR)
Usage Examples
Standard production build
Build with debug logging
Build to a custom directory
Build Outputs
The build creates the following structure in./build:
Data File Hashing
During the build, parquet data files are automatically hashed using MD5 to enable cache busting:Environment Variables
EVIDENCE_BUILD_DIR- Output directory for build files (default:./build)EVIDENCE_DATA_DIR- Directory for data files (default:./static/data)EVIDENCE_DATA_URL_PREFIX- URL prefix for data files (default:static/data)EVIDENCE_IS_BUILDING- Set totrueduring build
Exit Codes
0- Build completed successfully- Non-zero - Build failed
Strict Mode Build
For builds that fail on any error (useful in CI/CD):Related Commands
- evidence dev - Start development server
- evidence preview - Preview the production build
- evidence sources - Build source data before building