diff --git a/content/blog/how-to-publish.md b/content/blog/how-to-publish.md index e647e39..85fcb98 100644 --- a/content/blog/how-to-publish.md +++ b/content/blog/how-to-publish.md @@ -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 diff --git a/netlify.toml b/netlify.toml index d6b540a..6048601 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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]] diff --git a/public/raw/how-to-publish.md b/public/raw/how-to-publish.md index 66af638..1590c85 100644 --- a/public/raw/how-to-publish.md +++ b/public/raw/how-to-publish.md @@ -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