The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix root redirect test
Steven Teyd7492b60ed08
diff --git a/apps/web/tests/redirects/index.test.ts b/apps/web/tests/redirects/index.test.tsindex e883a18583..b82723b81c 100644--- a/apps/web/tests/redirects/index.test.ts+++ b/apps/web/tests/redirects/index.test.ts@@ -17,7 +17,8 @@ describe.runIf(env.CI)("Link Redirects", async () => {test("root", async () => {const response = await fetch(h.baseUrl, fetchOptions);- expect(response.headers.get("location")).toBe("https://dub.co/");+ // the location should start with "https://dub.co"+ expect(response.headers.get("location")).toMatch(/^https:\/\/dub\.co\//);expect(response.headers.get("x-powered-by")).toBe(poweredBy);expect(response.status).toBe(301);});