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.

fix mdx bug

Steven Tey71201e8d8081
diff --git a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx b/app/dub.sh/(blog-post)/blog/[slug]/page.tsx
index ab6334e5d5..8455516d83 100644
--- a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx
+++ b/app/dub.sh/(blog-post)/blog/[slug]/page.tsx
@@ -11,8 +11,6 @@ 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/changelog/layout.tsx b/app/dub.sh/changelog/layout.tsx
deleted file mode 100644
index 89de90d68a..0000000000
--- a/app/dub.sh/changelog/layout.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import { ReactNode } from "react";
-
-export const runtime = "nodejs";
-
-export default function ChangelogLayout({ children }: { children: ReactNode }) {
- return children;
-}
diff --git a/app/dub.sh/help/article/[slug]/page.tsx b/app/dub.sh/help/article/[slug]/page.tsx
index 3f38114992..ac90be42eb 100644
--- a/app/dub.sh/help/article/[slug]/page.tsx
+++ b/app/dub.sh/help/article/[slug]/page.tsx
@@ -15,8 +15,6 @@ 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,
diff --git a/app/dub.sh/layout.tsx b/app/dub.sh/layout.tsx
index 0b2e924df4..a0b1f5cdab 100644
--- a/app/dub.sh/layout.tsx
+++ b/app/dub.sh/layout.tsx
@@ -5,8 +5,6 @@ import Footer from "#/ui/home/footer";
import Background from "#/ui/home/background";
import MobileNav from "#/ui/home/nav-mobile";
-export const runtime = "edge";
-
export default function MarketingLayout({
children,
modal,
diff --git a/app/dub.sh/metatags/page.tsx b/app/dub.sh/metatags/page.tsx
index 843d855f4a..6f185ba07d 100644
--- a/app/dub.sh/metatags/page.tsx
+++ b/app/dub.sh/metatags/page.tsx
@@ -11,6 +11,8 @@ export const metadata = constructMetadata({
"Dub's Metatags API is a free & simple API to retrieve meta & OG tags from a URL, powered by Vercel Edge Functions.",
});
+export const runtime = "edge";
+
export default function Metatags() {
return (
<>
diff --git a/app/dub.sh/page.tsx b/app/dub.sh/page.tsx
index ab740173bd..a1df015e38 100644
--- a/app/dub.sh/page.tsx
+++ b/app/dub.sh/page.tsx
@@ -10,6 +10,8 @@ import Changelog from "#/ui/home/changelog";
import { Suspense } from "react";
import GlobeClient from "#/ui/home/globe-client";
+export const runtime = "edge";
+
export default function Home() {
return (
<>
diff --git a/app/ui/form.tsx b/app/ui/form.tsx
index e77942f607..82a63e4346 100644
--- a/app/ui/form.tsx
+++ b/app/ui/form.tsx
@@ -32,12 +32,11 @@ export default function Form({
}}
className="rounded-lg border border-gray-200 bg-white"
>
- <div className="relative flex flex-col space-y-3 p-5 sm:p-10">
- <h2 className="text-xl font-medium">{title}</h2>
- <div className="flex items-center space-x-1">
+ <div className="relative flex flex-col space-y-6 p-5 sm:p-10">
+ <div className="flex flex-col space-y-3">
+ <h2 className="text-xl font-medium">{title}</h2>
<p className="text-sm text-gray-500">{description}</p>
</div>
- <div />
{typeof inputData.defaultValue === "string" ? (
<input
{...inputData}
diff --git a/components/app/modals/import-short-modal.tsx b/components/app/modals/import-short-modal.tsx
index dc3dad9272..00028294c3 100644
--- a/components/app/modals/import-short-modal.tsx
+++ b/components/app/modals/import-short-modal.tsx
@@ -17,7 +17,7 @@ import { Logo, LoadingSpinner } from "#/ui/icons";
import { ModalContext } from "#/ui/modal-provider";
import useSWR, { mutate } from "swr";
import { ShortioDomainProps } from "#/lib/types";
-import Tooltip, { InfoTooltip, SimpleTooltipContent } from "#/ui/tooltip";
+import { InfoTooltip, SimpleTooltipContent } from "#/ui/tooltip";
import { fetcher, nFormatter } from "#/lib/utils";
import { HOME_DOMAIN } from "#/lib/constants";