Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(sandbox): prefix docsite image paths with basePath (#1250)

rubyycheung0206411ad131
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
index 473c506097..080c4d37af 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx
@@ -547,10 +547,11 @@ function BoidsCanvas({
// Template data — real images from /public/templates/
// ---------------------------------------------------------------------------
-const DUMMY_IMAGE = '/templates/dummy-placeholder.png';
-const FIRST_CARD_IMAGE = '/templates/first-card.png';
-const SHOPPING_DETAILS_IMAGE = '/templates/shopping-details.png';
-const SCREENSHOT_3_IMAGE = '/templates/screenshot-3.png';
+const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '';
+const DUMMY_IMAGE = `${basePath}/templates/dummy-placeholder.png`;
+const FIRST_CARD_IMAGE = `${basePath}/templates/first-card.png`;
+const SHOPPING_DETAILS_IMAGE = `${basePath}/templates/shopping-details.png`;
+const SCREENSHOT_3_IMAGE = `${basePath}/templates/screenshot-3.png`;
const TEMPLATE_IMAGES = [DUMMY_IMAGE, DUMMY_IMAGE, DUMMY_IMAGE, DUMMY_IMAGE];