File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 758758 "required" : false
759759 },
760760 {
761- "name" : " port " ,
762- "title" : " Port " ,
763- "description" : " The port number the Anytype API is running on ." ,
761+ "name" : " apiUrl " ,
762+ "title" : " API URL " ,
763+ "description" : " The base URL of the Anytype API (default: http://127.0.0.1:31009) ." ,
764764 "type" : " textfield" ,
765- "default" : " 31009" ,
765+ "default" : " http://127.0.0.1: 31009" ,
766766 "required" : false
767767 }
768768 ],
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const anytypeNetwork = "N83gJpVd9MuNRZAuJLZ7LiMntTThhPc6DtzWWVjb1M3PouVU"
99export const errorConnectionMessage = "Can't connect to API. Please ensure Anytype is running and reachable." ;
1010
1111// URLs
12- export const apiUrl = `http://127.0.0.1: ${ getPreferenceValues ( ) . port } ` ;
12+ export const apiUrl = getPreferenceValues ( ) . apiUrl ;
1313export const downloadUrl = "https://download.anytype.io/" ;
1414export const anytypeSpaceDeeplink = ( spaceId : string ) => `anytype://main/object/_blank_/space.id/${ spaceId } ` ;
1515
You can’t perform that action at this time.
0 commit comments