The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update utils.ts
Steven Teyd8b2108d24ed
diff --git a/apps/web/lib/middleware/utils.ts b/apps/web/lib/middleware/utils.tsindex 958675a76e..2aed52aa14 100644--- a/apps/web/lib/middleware/utils.ts+++ b/apps/web/lib/middleware/utils.ts@@ -5,7 +5,7 @@ export const parse = (req: NextRequest) => {domain = domain.replace("www.", ""); // remove www. from domainif (domain === "dub.localhost:8888" || domain.endsWith(".vercel.app")) {// for local development and preview URLs- domain = "apwr.dev";+ domain = "dub.sh";}// path is the path of the URL (e.g. dub.co/stats/github -> /stats/github)