From 3c9009f879c7632131e88ee9d3f4a74b85b7ca6c Mon Sep 17 00:00:00 2001 From: Ben Derham <1805685+benderham@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:09:52 +0800 Subject: [PATCH 1/2] updates the source tag when subscribing to the thinkmill newsletter --- docs/src/app/mailing-list/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/app/mailing-list/route.ts b/docs/src/app/mailing-list/route.ts index 3bb0644d5..4cc4d6c77 100644 --- a/docs/src/app/mailing-list/route.ts +++ b/docs/src/app/mailing-list/route.ts @@ -25,7 +25,7 @@ export async function POST(req: Request): Promise { email: formData.get('email'), tags: [ ...formData.getAll('tags'), - `keystatic website${pathname !== '/' ? `: ${pathname}` : ' homepage'}`, + `source:keystatic.com${pathname}`, ], }; From 3cdcde63c8b1f93215660a86693ad0128e2dd8b4 Mon Sep 17 00:00:00 2001 From: Emma Hamilton Date: Mon, 16 Sep 2024 16:27:01 +1000 Subject: [PATCH 2/2] Prettier --- docs/src/app/mailing-list/route.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/src/app/mailing-list/route.ts b/docs/src/app/mailing-list/route.ts index 4cc4d6c77..aed4d28dc 100644 --- a/docs/src/app/mailing-list/route.ts +++ b/docs/src/app/mailing-list/route.ts @@ -23,10 +23,7 @@ export async function POST(req: Request): Promise { console.log(formData.getAll('tags')); const data = { email: formData.get('email'), - tags: [ - ...formData.getAll('tags'), - `source:keystatic.com${pathname}`, - ], + tags: [...formData.getAll('tags'), `source:keystatic.com${pathname}`], }; const buttondownResponse = await fetch(