From a0582f7104bf320cd08f46f2711bf0cdca70f354 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Thu, 24 Jul 2025 10:08:07 -0400 Subject: [PATCH 1/3] fix: remove `test.html` --- claim-db-worker/src/templates/test.html | 368 ------------------------ 1 file changed, 368 deletions(-) delete mode 100644 claim-db-worker/src/templates/test.html diff --git a/claim-db-worker/src/templates/test.html b/claim-db-worker/src/templates/test.html deleted file mode 100644 index 459ba89..0000000 --- a/claim-db-worker/src/templates/test.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - - - - - - - - - - - Animated Terminal - - - -
-
- Prisma Postgres Logo -
-
- Magic Wand Icon -

No account or config needed

-
-

Want a free, instant Prisma Postgres database?

-
- $ - npx create-db - -
-

your database will expire after 24 hours unless you claim it

-
-
-
-
-
-
-
1
-
Deploy in seconds
-
-
- Run npx create-db in your terminal to get a Prisma Postgres database instantly - no login, no - setup. -
-
-
-
-
2
-
Copy the connection string
-
-
You'll get a full connection string that works with any Postgres-compatible tool or framework.
-
-
-
-
3
-
Claim it or let it expire
-
-
- If you want to keep it, claim it with your Prisma account. Otherwise, - it will expire after 24 hours. -
-
-
-
-
-
Flag
-
Description
-
-
-
--name
-
Name of the database
-
-
-
--region
-
DB Region
-
-
-
--direct
-
Enable TCP access
-
-
-
- - ${getTerminalAnimationHtml()} -
- - - From 4ff732fbb41c704cf7a7281ab00515dcb338dd9c Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Thu, 24 Jul 2025 10:08:32 -0400 Subject: [PATCH 2/3] feat: added `create-db` as a `utm_source` --- claim-db-worker/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/claim-db-worker/src/index.ts b/claim-db-worker/src/index.ts index 051b430..2c52e09 100644 --- a/claim-db-worker/src/index.ts +++ b/claim-db-worker/src/index.ts @@ -157,6 +157,7 @@ export default { response_type: RESPONSE_TYPE, scope: SCOPE, state: generateState(), + utm_source: 'create-db', }); const authUrl = `https://auth.prisma.io/authorize?${authParams.toString()}`; return new Response(getClaimHtml(projectID, authUrl), { From f9f22d67099f70676a718243ef9b6a1259f28271 Mon Sep 17 00:00:00 2001 From: Aidan McAlister Date: Thu, 24 Jul 2025 11:04:07 -0400 Subject: [PATCH 3/3] fix: swapped to use `cli` command used --- claim-db-worker/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/claim-db-worker/src/index.ts b/claim-db-worker/src/index.ts index 2c52e09..302e25d 100644 --- a/claim-db-worker/src/index.ts +++ b/claim-db-worker/src/index.ts @@ -157,7 +157,8 @@ export default { response_type: RESPONSE_TYPE, scope: SCOPE, state: generateState(), - utm_source: 'create-db', + utm_source: url.searchParams.get('utm_source') || 'unknown', + utm_medium: 'cli', }); const authUrl = `https://auth.prisma.io/authorize?${authParams.toString()}`; return new Response(getClaimHtml(projectID, authUrl), {