From edaa108900b55b1facf48d5dfe69d0ac066944cd Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 10 Apr 2024 03:26:35 +0100 Subject: [PATCH] Fix vite warnings --- src/pages/[roadmapId]/index.json.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pages/[roadmapId]/index.json.ts b/src/pages/[roadmapId]/index.json.ts index 5d3584ef5..ae57f0c16 100644 --- a/src/pages/[roadmapId]/index.json.ts +++ b/src/pages/[roadmapId]/index.json.ts @@ -26,14 +26,11 @@ export const GET: APIRoute = async function ({ params, url, request, props }) { : fullRoadmapId; const fileName = - roadmapId === fullRoadmapId - ? `${roadmapId}.json` - : `${fullRoadmapId}.json`; + roadmapId === fullRoadmapId ? `${roadmapId}.json` : `${fullRoadmapId}.json`; - console.log(fileName); try { const roadmapJson = await import( - `../../data/roadmaps/${roadmapId}/${fileName}` + /* @vite-ignore */ `../../data/roadmaps/${roadmapId}/${fileName}` ); return new Response(JSON.stringify(roadmapJson), {