File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,11 @@ export class BlockCatalogService {
6161
6262 // const fileName = `${this.capitalize(blockId)}.json`;
6363 const fileName = block . file || `${ this . capitalize ( blockId ) } .json` ;
64- const fullPath = join ( __dirname , `../assets/assets/collection/${ category } /${ fileName } ` ) ;
65- const fileContent = await fs . readFile ( fullPath , 'utf8' ) ;
64+ // const fullPath = join(__dirname, `../assets/assets/collection/${category}/${fileName}`);
65+ // const fileContent = await fs.readFile(fullPath, 'utf8');
66+
67+ const response = await fetch ( `https://raw.githubusercontent.com/offboard-studio/offboard.studio.components.store/refs/heads/main/src/assets/collection/${ category } /${ fileName } ` ) ;
68+ const fileContent = await response . text ( ) ;
6669
6770 return {
6871 label : block . label ,
You can’t perform that action at this time.
0 commit comments