Critical Failure: Vault Empty
Error:
CRITICAL FAILURE: Scanned X files but 0 were published.
The Problem
The system scanned your vault but found zero notes marked with publish: true and visibility: public.
This is almost always a sign of a structural or configuration error rather than a genuine lack of content.
The Why
- Corrupted Frontmatter: A syntax error in your YAML frontmatter (e.g., missing
:, unquoted strings with special characters) can cause the entire file to fail parsing. If this happens to your main notes, the system ignores them. - Missing Flags: You may have forgotten to add
publish: trueto your notes. - Sync Issues: The Obsidian vault might not be correctly linked or synchronized in the build environment.
The Solution
- Check the logs: Look immediately preceding this fatal error for specific parsing warnings.
- Validate YAML: Ensure your frontmatter is strictly valid YAML.
- Verify Flags: Check a few representative notes to ensure
publish: trueis set. - Local Build: Run
pnpm run buildlocally to see the exact file failing to parse.