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.

include `dub.co`, remove old redirects

Steven Tey54db2204c575
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index e45f11b88c..f52ea90115 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -140,7 +140,7 @@ module.exports = withPlausibleProxy({
missing: [
{
type: "host",
- value: ".*(\\.dub\\.co|localhost)",
+ value: "(.+\\.)?dub\\.co|.*localhost",
},
],
destination: "/",
@@ -170,42 +170,6 @@ module.exports = withPlausibleProxy({
permanent: true,
statusCode: 301,
},
- {
- source: "/",
- has: [
- {
- type: "host",
- value: "staging.dub.sh",
- },
- ],
- destination: "https://dub.co",
- permanent: true,
- statusCode: 301,
- },
- {
- source: "/",
- has: [
- {
- type: "host",
- value: "preview.dub.sh",
- },
- ],
- destination: "https://preview.dub.co",
- permanent: true,
- statusCode: 301,
- },
- {
- source: "/",
- has: [
- {
- type: "host",
- value: "admin.dub.sh",
- },
- ],
- destination: "https://admin.dub.co",
- permanent: true,
- statusCode: 301,
- },
];
},
async rewrites() {