mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
fix: exclude raw files from edge function so AI crawlers can access markdown
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user