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.

cache dub.sh on vercel cdn

Steven Tey2e10fdb806a6
diff --git a/next.config.js b/next.config.js
index 770155e056..743e53e021 100644
--- a/next.config.js
+++ b/next.config.js
@@ -23,6 +23,16 @@ const nextConfig = {
},
async headers() {
return [
+ {
+ source: "/",
+ has: [{ type: "host", value: "dub.sh" }],
+ headers: [
+ {
+ key: "cdn-cache-control",
+ value: "max-age=300",
+ },
+ ],
+ },
{
source: "/:path*",
headers: [