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 guides directory

Steven Teyd2421bbc2172
diff --git a/apps/web/lib/get-integration-guide-markdown.ts b/apps/web/lib/get-integration-guide-markdown.ts
index 4fd603284a..7ad13a6c92 100644
--- a/apps/web/lib/get-integration-guide-markdown.ts
+++ b/apps/web/lib/get-integration-guide-markdown.ts
@@ -13,11 +13,11 @@ export async function getIntegrationGuideMarkdown(
}
// Use a more explicit path construction to satisfy the linter
- const integrationGuidesDir = join(process.cwd(), "integration-guides");
- const markdownPath = join(integrationGuidesDir, `${sanitizedKey}.md`);
+ const guidesDirectory = join(process.cwd(), "guides");
+ const markdownPath = join(guidesDirectory, `${sanitizedKey}.md`);
// Additional security check: ensure the path is within the expected directory
- if (!markdownPath.startsWith(integrationGuidesDir)) {
+ if (!markdownPath.startsWith(guidesDirectory)) {
return null;
}