Skip to content

Commit

Permalink
change blog & help articles to node runtime due to rpearce/react-medi…
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Aug 3, 2023
1 parent 9c4c265 commit 07f1c11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/dub.sh/(blog-post)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions app/dub.sh/help/article/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 07f1c11

Please sign in to comment.