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.

move to integration-guides

Kiran Kb32300740248
diff --git a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page.tsx b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page.tsx
index 3148612ffb..6274656743 100644
--- a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page.tsx
+++ b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page.tsx
@@ -1,22 +1,12 @@
import { readFileSync } from "fs";
import { notFound } from "next/navigation";
import { join } from "path";
+import { Suspense } from "react";
import { StepPage } from "../step-page";
import { guides } from "./integration-guides";
import { PageClient } from "./page-client";
import { IntegrationGuide } from "./types";
-function getMarkdown(guideKey: string): string | null {
- const markdownPath = join(process.cwd(), "markdown", `${guideKey}.md`);
-
- try {
- return readFileSync(markdownPath, "utf-8");
- } catch (error) {
- console.warn(`Guide content not found for: ${guideKey}`);
- return null;
- }
-}
-
export default async function Page({
searchParams,
}: {
@@ -44,7 +34,20 @@ export default async function Page({
return (
<StepPage title="Connecting Dub">
- <PageClient markdown={markdown} />
+ <Suspense fallback={<div>Loading...</div>}>
+ <PageClient markdown={markdown} />
+ </Suspense>
</StepPage>
);
}
+
+function getMarkdown(guideKey: string): string | null {
+ const markdownPath = join(process.cwd(), "integration-guides", `${guideKey}.md`);
+
+ try {
+ return readFileSync(markdownPath, "utf-8");
+ } catch (error) {
+ console.warn(`Guide content not found for: ${guideKey}`);
+ return null;
+ }
+}
diff --git a/apps/web/markdown/framer.md b/apps/web/integration-guides/framer.md
similarity index 100%
rename from apps/web/markdown/framer.md
rename to apps/web/integration-guides/framer.md
diff --git a/apps/web/markdown/react.md b/apps/web/integration-guides/react.md
similarity index 100%
rename from apps/web/markdown/react.md
rename to apps/web/integration-guides/react.md
diff --git a/apps/web/markdown/webflow.md b/apps/web/integration-guides/webflow.md
similarity index 100%
rename from apps/web/markdown/webflow.md
rename to apps/web/integration-guides/webflow.md