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 more debug logs

Steven Teyde407f62d4b2
diff --git a/pages/proxy/[domain]/[key].tsx b/pages/proxy/[domain]/[key].tsx
index 4cf3a6b860..0c1ce8d690 100644
--- a/pages/proxy/[domain]/[key].tsx
+++ b/pages/proxy/[domain]/[key].tsx
@@ -75,10 +75,12 @@ export default function LinkPage({ url, title, description, image }) {
export async function getServerSideProps(ctx) {
const { domain, key } = ctx.params;
+ console.log("2nd LOGGING", domain, key);
const response = await redis.hget<Omit<LinkProps, "key">>(
`${domain}:links`,
key
);
+ console.log("3rd LOGGING", response);
const { url, title, description, image } = response || {};
if (!url || !title || !description || !image) {
return {
@@ -86,6 +88,7 @@ export async function getServerSideProps(ctx) {
};
}
+ console.log("4th LOGGING", url, title, description, image);
const hostname = new URL(url).hostname;
return {