diff --git a/claim-db-worker/src/index.ts b/claim-db-worker/src/index.ts index 051b430..302e25d 100644 --- a/claim-db-worker/src/index.ts +++ b/claim-db-worker/src/index.ts @@ -157,6 +157,8 @@ export default { response_type: RESPONSE_TYPE, scope: SCOPE, state: generateState(), + 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), { 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()} -
- - -