From 4af7c47f9e8335836626ed9cc6990af2139b3b9a Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Fri, 25 Jul 2025 16:49:00 -0400 Subject: [PATCH 1/2] fix invalidate pattern --- src/pages/api/webhook-contentful.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/webhook-contentful.ts b/src/pages/api/webhook-contentful.ts index 1ab8686..a2cf44a 100644 --- a/src/pages/api/webhook-contentful.ts +++ b/src/pages/api/webhook-contentful.ts @@ -35,7 +35,7 @@ export async function handler (request: Request) { Paths: { Quantity: 1, Items: [ - `/api/v2/${entity}s*` + `/api/${entity}s*` ] } } From 4a05ea671ebbcd56815c7a71f0a4f91e5b65cf09 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Fri, 25 Jul 2025 16:51:04 -0400 Subject: [PATCH 2/2] update docs --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6af4e08..01c6a4f 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ To use [Prisma Studio](https://www.prisma.io/studio), run `npm run studio` ### Albums -Data sourced from [**Turso**](https://turso.tech) for the **Album** resource type. Available at `/api/albums` locally and publicly as `/api/v2/albums`. +Data sourced from [**Turso**](https://turso.tech) for the **Album** resource type. Available at `/api/albums` locally and publicly as `/api/albums`. _Options:_ - `?id=xxx` - Filter by the `id` of the album @@ -60,14 +60,14 @@ _Options:_ ### Artists -Data sourced from [**Turso**](https://turso.tech) for the **Artist** resource type. Available at `/api/artists` locally and publicly as `/api/v2/artists`. +Data sourced from [**Turso**](https://turso.tech) for the **Artist** resource type. Available at `/api/artists` locally and publicly as `/api/artists`. _Options:_ - `?id=xxx` - Filter by the `id` of the artist ### Events -Structured events content sourced from [**Contentful**](https://contentful.com/) for the **Event** resource type. Available at `/api/events` locally and publicly as `/api/v2/events`. +Structured events content sourced from [**Contentful**](https://contentful.com/) for the **Event** resource type. Available at `/api/events` locally and publicly as `/api/events`. _Options:_ - `?id=xxx` - Filter by the `id` of the event @@ -77,7 +77,7 @@ _Options:_ ### Posts -Data sourced from [**Turso**](https://turso.tech) for the **Post** resource type. Available at `/api/posts` locally and publicly as `/api/v2/posts`. +Data sourced from [**Turso**](https://turso.tech) for the **Post** resource type. Available at `/api/posts` locally and publicly as `/api/posts`. _Options:_ - `?id=xxx` - Filter by the `id` of a post