website / Fix broken links, slow loading, and prod errors (#5932)
The code is in a bad state, this is just fixing it but not improving the structure
This commit is contained in:
@ -16,7 +16,7 @@ export const getCardPath = (
|
||||
if (isPlayground.includes(card.fileName)) {
|
||||
const apiType = card.fileName.includes('rest') ? 'rest-api' : 'graphql';
|
||||
const apiName = card.fileName.includes('core') ? 'core' : 'metadata';
|
||||
return `${basePath}/${apiType}/${apiName}`;
|
||||
return `/developers/${apiType}/${apiName}`;
|
||||
} else if (card.fileName.includes('storybook')) {
|
||||
return 'https://storybook.twenty.com';
|
||||
} else if (card.fileName.includes('components')) {
|
||||
|
||||
Reference in New Issue
Block a user