From 07277708eb2d2aa767b2a9fb51ae7e1320fdc074 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 20 Aug 2025 12:28:03 +0600 Subject: [PATCH] fix: replace the api endpoint --- scripts/sync-content-to-repo.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/sync-content-to-repo.ts b/scripts/sync-content-to-repo.ts index 1903372ee..158f568eb 100644 --- a/scripts/sync-content-to-repo.ts +++ b/scripts/sync-content-to-repo.ts @@ -11,12 +11,10 @@ const roadmapSlug = args?.[0]?.replace('--roadmap-slug=', ''); const secret = args?.[1]?.replace('--secret=', ''); if (!secret) { throw new Error('Secret is required'); - process.exit(1); } if (!roadmapSlug || roadmapSlug === '__default__') { throw new Error('Roadmap slug is required'); - process.exit(1); } console.log(`🚀 Starting ${roadmapSlug}`); @@ -54,7 +52,7 @@ export async function roadmapTopics( roadmapId: string, secret: string, ): Promise { - const path = `https://api.chit.fun/v1-official-roadmap-topics/${roadmapId}?secret=${secret}`; + const path = `https://roadmap.sh/api/v1-list-official-roadmap-topics/${roadmapId}?secret=${secret}`; const response = await fetch(path); if (!response.ok) { throw new Error(`Failed to fetch roadmap topics: ${response.statusText}`);