Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add git.new

Steven Tey0b9a09639ab9
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma
index b32a26c4c8..6501b52ac4 100644
--- a/apps/web/prisma/schema.prisma
+++ b/apps/web/prisma/schema.prisma
@@ -111,7 +111,7 @@ model Project {
updatedAt DateTime @updatedAt
inviteCode String? @unique
- metadata Json? @default("{\"defaultDomains\":[\"dub.sh\",\"chatg.pt\",\"spti.fi\",\"amzn.id\"]}")
+ metadata Json? @default("{\"defaultDomains\":[\"dub.sh\",\"chatg.pt\",\"spti.fi\",\"git.new\",\"amzn.id\"]}")
}
model ProjectInvite {
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 1d1c99e10e..b22c36357a 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.0.36",
+ "version": "0.0.37",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/index.ts b/packages/utils/src/constants/index.ts
index ca812e0861..49929f8f75 100644
--- a/packages/utils/src/constants/index.ts
+++ b/packages/utils/src/constants/index.ts
@@ -95,6 +95,34 @@ export const DUB_DOMAINS = [
allowedHostnames: ["chat.openai.com"],
projectId: DUB_PROJECT_ID,
},
+ {
+ id: "cloxw8y2u0003js08a7mqg1j8",
+ slug: "spti.fi",
+ verified: true,
+ primary: false,
+ archived: false,
+ publicStats: false,
+ target: "https://dub.co/tools/spotify-link-shortener",
+ type: "redirect",
+ placeholder: "https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",
+ clicks: 0,
+ allowedHostnames: ["open.spotify.com"],
+ projectId: DUB_PROJECT_ID,
+ },
+ {
+ id: "cltgtd6s5000341itdszz20u2",
+ slug: "git.new",
+ verified: true,
+ primary: false,
+ archived: false,
+ publicStats: false,
+ target: "https://dub.co/tools/github-link-shortener",
+ type: "redirect",
+ placeholder: "https://github.com/dubinc/dub",
+ clicks: 0,
+ allowedHostnames: ["github.com", "gist.github.com"],
+ projectId: DUB_PROJECT_ID,
+ },
{
id: "cloxw8qtk000bjt08n9b812vs",
slug: "amzn.id",
@@ -114,20 +142,6 @@ export const DUB_DOMAINS = [
],
projectId: DUB_PROJECT_ID,
},
- {
- id: "cloxw8y2u0003js08a7mqg1j8",
- slug: "spti.fi",
- verified: true,
- primary: false,
- archived: false,
- publicStats: false,
- target: "https://dub.co/tools/spotify-link-shortener",
- type: "redirect",
- placeholder: "https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",
- clicks: 0,
- allowedHostnames: ["open.spotify.com"],
- projectId: DUB_PROJECT_ID,
- },
]
: []),
];
diff --git a/packages/utils/src/constants/layout.ts b/packages/utils/src/constants/layout.ts
index 965bed0768..3cde178cf0 100644
--- a/packages/utils/src/constants/layout.ts
+++ b/packages/utils/src/constants/layout.ts
@@ -9,6 +9,7 @@ export const HIDE_BACKGROUND_SEGMENTS = [
export const ALL_TOOLS = [
{ name: "Spotify Link Shortener", slug: "spotify-link-shortener" },
{ name: "ChatGPT Link Shortener", slug: "chatgpt-link-shortener" },
+ { name: "GitHub Link Shortener", slug: "github-link-shortener" },
{ name: "Amazon Link Shortener", slug: "amazon-link-shortener" },
{ name: "Metatags API", slug: "metatags" },
{ name: "QR Code API", slug: "qr-code" },