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.

revert changes

Steven Tey56cc21d3b1f9
diff --git a/middleware.ts b/middleware.ts
index 8b97028653..90890a178e 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -11,16 +11,6 @@ import { isReservedKey } from "./lib/utils";
export const config = {
matcher: [
- // Exclude `dub.sh` marketing pages
- {
- source: "/",
- missing: [
- {
- type: "host",
- value: "preview.dub.sh",
- },
- ],
- },
/*
* Match all paths except for:
* 1. /api/ routes
diff --git a/next.config.js b/next.config.js
index 7b3fe0a857..7f65b37bd1 100644
--- a/next.config.js
+++ b/next.config.js
@@ -50,30 +50,6 @@ const nextConfig = {
},
];
},
- async rewrites() {
- return [
- {
- source: "/",
- has: [
- {
- type: "host",
- value: "preview.dub.sh",
- },
- ],
- destination: "/dub.sh",
- },
- {
- source: "/:path*",
- has: [
- {
- type: "host",
- value: "preview.dub.sh",
- },
- ],
- destination: "/dub.sh/:path*",
- },
- ];
- },
};
module.exports = withContentlayer(nextConfig);