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.

change blog & help articles to node runtime due to https://github.com/rpearce/react-medium-image-zoom/issues/429#issuecomment-1663119432

Steven Tey07f1c119d54b
diff --git a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx b/app/dub.sh/(blog-post)/blog/[slug]/page.tsx
index 8455516d83..ab6334e5d5 100644
--- a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx
+++ b/app/dub.sh/(blog-post)/blog/[slug]/page.tsx
@@ -11,6 +11,8 @@ import { getTweet } from "react-tweet/api";
import BlurImage from "#/ui/blur-image";
import { BLOG_CATEGORIES } from "#/lib/constants/content";
+export const runtime = "nodejs";
+
export async function generateStaticParams() {
return allBlogPosts.map((post) => ({
slug: post.slug,
diff --git a/app/dub.sh/help/article/[slug]/page.tsx b/app/dub.sh/help/article/[slug]/page.tsx
index ac90be42eb..3f38114992 100644
--- a/app/dub.sh/help/article/[slug]/page.tsx
+++ b/app/dub.sh/help/article/[slug]/page.tsx
@@ -15,6 +15,8 @@ import { Metadata } from "next";
import { constructMetadata } from "#/lib/utils";
import { getTweet } from "react-tweet/api";
+export const runtime = "nodejs";
+
export async function generateStaticParams() {
return allHelpPosts.map((post) => ({
slug: post.slug,