1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-10-03 12:21:52 +02:00

chore: update official roadmap endpoint

This commit is contained in:
Arik Chakma
2025-05-12 19:35:43 +06:00
parent 888342ea37
commit 4819aafb22
9 changed files with 86 additions and 59 deletions

View File

@@ -65,8 +65,10 @@ export function UserProgressModal(props: ProgressMapProps) {
let resourceJsonUrl = import.meta.env.DEV
? 'http://localhost:3000'
: 'https://roadmap.sh';
if (resourceType === 'roadmap') {
if (resourceType === 'roadmap' && renderer === 'balsamiq') {
resourceJsonUrl += `/${resourceId}.json`;
} else if (resourceType === 'roadmap' && renderer === 'editor') {
resourceJsonUrl = `${import.meta.env.PUBLIC_API_URL}/v1-official-roadmap/${resourceId}`;
} else {
resourceJsonUrl += `/best-practices/${resourceId}.json`;
}