Evidence uses configuration files to customize build behavior, deployment settings, and data sources.Documentation 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.config.yaml
The main Evidence configuration file located in your project root.Example
Deployment Configuration
Base path for the application when deployed to a subdirectory. Used by SvelteKit’s
paths.base configuration.svelte.config.js
Optional custom SvelteKit configuration file in your project root.Supported Customizations
You can extend Evidence’s default SvelteKit configuration:Restrictions
Preprocessor Merging
Custom preprocessors are appended to Evidence’s default preprocessors:- Evidence preprocessors (query extraction, etc.)
- Component injection
- PostCSS preprocessing
- Base path transformation
- Your custom preprocessors
Source Configuration
Data source configuration is stored insources/[source-name]/connection.yaml.
Example: PostgreSQL Source
Variable Substitution
Use${variable} syntax to reference environment variables:
Environment Variable Override
You can override any source option using environment variables:EVIDENCE_SOURCE__[source_name]__[option]
See Environment Variables for details.
package.json Scripts
Recommended npm scripts for Evidence projects:Usage
Build Configuration
The Evidence build system uses these internal configurations:Adapter Configuration
Static adapter settings fromsvelte.config.js:
File Locations (Fixed)
.evidence/template/ cannot be customized.
Template Directory
Evidence uses.evidence/template/ as an internal build directory:
This directory is managed automatically by Evidence CLI commands. Manual changes will be overwritten.
Related
- Environment Variables - Environment variable reference
- evidence sources - Source data generation
- evidence build - Production builds