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.

added revalidate for proxy 404 case

Steven Tey334196b89911
diff --git a/.gitignore b/.gitignore
index bd89748b03..09ef1cc5df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,4 +36,5 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts
-/pages/api/scripts*
\ No newline at end of file
+/pages/api/scripts*
+.mailing
\ No newline at end of file
diff --git a/pages/proxy/[domain]/[key].tsx b/pages/proxy/[domain]/[key].tsx
index 00f855ed84..2b86796326 100644
--- a/pages/proxy/[domain]/[key].tsx
+++ b/pages/proxy/[domain]/[key].tsx
@@ -67,6 +67,7 @@ export async function getStaticProps(ctx) {
if (!url || !title || !description || !image) {
return {
notFound: true,
+ revalidate: 1,
};
}
const project = await prisma.project.findUnique({