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.

Update next.config.js

Steven Tey769dcb31f34f
diff --git a/next.config.js b/next.config.js
index 60bde950f9..7eb79f65a4 100644
--- a/next.config.js
+++ b/next.config.js
@@ -78,6 +78,30 @@ const nextConfig = {
permanent: true,
statusCode: 301,
},
+ {
+ source: "/",
+ has: [
+ {
+ type: "host",
+ value: "api.dub.sh",
+ },
+ ],
+ destination: "https://api.dub.co",
+ permanent: true,
+ statusCode: 301,
+ },
+ {
+ source: "/:path*",
+ has: [
+ {
+ type: "host",
+ value: "api.dub.sh",
+ },
+ ],
+ destination: "https://api.dub.co/:path*",
+ permanent: true,
+ statusCode: 301,
+ },
{
source: "/",
has: [