fix: exclude raw files from edge function so AI crawlers can access markdown

This commit is contained in:
Wayne Sutton
2025-12-22 01:35:38 -08:00
parent 94ba8fe184
commit e9ff238abf
3 changed files with 6 additions and 5 deletions

View File

@@ -168,14 +168,14 @@ npm run sync:prod
Both files are gitignored.
## Quick Workflow in Cursor
## Quick Workflow in Cursor or other IDE
Here is the full workflow:
1. **Create file**: `content/blog/my-post.md`
2. **Add frontmatter**: Title, description, date, slug, published, tags
3. **Write content**: Markdown with headings, lists, code blocks
4. **Sync**: Run `npm run sync` in terminal
4. **Sync**: Run `npm run sync` in developmnet and `npm run sync:prod` in production in terminal
5. **View**: Open your site and navigate to `/your-slug`
## Tips

View File

@@ -44,10 +44,11 @@
path = "/api/geo"
function = "geo"
# Open Graph bot detection (catches all other routes)
# Open Graph bot detection (excludes static files and API routes)
[[edge_functions]]
path = "/*"
function = "botMeta"
excludedPath = ["/raw/*", "/api/*", "/*.xml", "/*.txt", "/*.yaml", "/*.json", "/*.md"]
# Security and SEO headers
[[headers]]

View File

@@ -163,14 +163,14 @@ npm run sync:prod
Both files are gitignored.
## Quick Workflow in Cursor
## Quick Workflow in Cursor or other IDE
Here is the full workflow:
1. **Create file**: `content/blog/my-post.md`
2. **Add frontmatter**: Title, description, date, slug, published, tags
3. **Write content**: Markdown with headings, lists, code blocks
4. **Sync**: Run `npm run sync` in terminal
4. **Sync**: Run `npm run sync` in developmnet and `npm run sync:prod` in production in terminal
5. **View**: Open your site and navigate to `/your-slug`
## Tips