mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-11 20:08:57 +00:00
890 B
890 B
description
| description |
|---|
| Sync markdown content to development Convex database |
/sync
Syncs all markdown content from content/blog/ and content/pages/ to the development Convex database.
What it does
- Reads all
.mdfiles from content directories - Parses frontmatter with gray-matter
- Validates required fields
- Calculates reading time if not provided
- Upserts content to Convex database
- Generates raw markdown files in
public/raw/
Usage
npm run sync
When to use
- After creating or editing markdown files
- After importing content from URLs
- When content is not appearing on the site
Output
The command shows:
- Number of posts synced
- Number of pages synced
- Any validation warnings
- Generated raw files
Next steps
After syncing, visit http://localhost:5173 to see your content.
For production sync, use /sync-prod instead.