mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
fix: use correct excluded_paths syntax for Netlify edge functions
This commit is contained in:
@@ -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
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user