fix: use correct excluded_paths syntax for Netlify edge functions

This commit is contained in:
Wayne Sutton
2025-12-22 01:58:11 -08:00
parent e9ff238abf
commit 1798be1047
3 changed files with 9 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ description: "A quick guide to writing and publishing markdown posts using Curso
date: "2025-12-14"
slug: "how-to-publish"
published: true
tags: ["tutorial", "markdown", "cursor", "publishing"]
tags: ["tutorial", "markdown", "cursor", "IDE", "publishing"]
readTime: "3 min read"
featured: true
featuredOrder: 3
@@ -18,7 +18,7 @@ excerpt: "Quick guide to writing and publishing markdown posts with npm run sync
![nature](/images/matthew-smith-Rfflri94rs8-unsplash.jpg)
Your blog is set up. Now you want to publish. This guide walks through writing a markdown post and syncing it to your live site using Cursor.
Your blog is set up. Now you want to publish. This guide walks through writing a markdown post and syncing it to your live site using Cursor or your favorite IDE.
## Use the Write Page
@@ -123,7 +123,7 @@ Wrap up your thoughts.
## Sync to Convex
Open Cursor's terminal and run:
Open Cursor's or your dev terminal and run:
```bash
npm run sync
@@ -175,7 +175,7 @@ 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 developmnet and `npm run sync:prod` in production in terminal
4. **Sync**: Run `npm run sync` in development and `npm run sync:prod` in production in terminal
5. **View**: Open your site and navigate to `/your-slug`
## Tips

View File

@@ -48,7 +48,7 @@
[[edge_functions]]
path = "/*"
function = "botMeta"
excludedPath = ["/raw/*", "/api/*", "/*.xml", "/*.txt", "/*.yaml", "/*.json", "/*.md"]
excluded_paths = ["/raw/*", "/api/*", "/**/*.md", "/**/*.xml", "/**/*.txt", "/**/*.yaml", "/**/*.json"]
# Security and SEO headers
[[headers]]

View File

@@ -6,14 +6,14 @@
Type: post
Date: 2025-12-14
Reading time: 3 min read
Tags: tutorial, markdown, cursor, publishing
Tags: tutorial, markdown, cursor, IDE, publishing
---
# How to Publish a Blog Post
![nature](/images/matthew-smith-Rfflri94rs8-unsplash.jpg)
Your blog is set up. Now you want to publish. This guide walks through writing a markdown post and syncing it to your live site using Cursor.
Your blog is set up. Now you want to publish. This guide walks through writing a markdown post and syncing it to your live site using Cursor or your favorite IDE.
## Use the Write Page
@@ -118,7 +118,7 @@ Wrap up your thoughts.
## Sync to Convex
Open Cursor's terminal and run:
Open Cursor's or your dev terminal and run:
```bash
npm run sync
@@ -170,7 +170,7 @@ 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 developmnet and `npm run sync:prod` in production in terminal
4. **Sync**: Run `npm run sync` in development and `npm run sync:prod` in production in terminal
5. **View**: Open your site and navigate to `/your-slug`
## Tips