Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: adding a workarround needed for a Cloudflare deployment

Ilian Sapundshiev04d125dfcd92
diff --git a/app/services/utils-io.ts b/app/services/utils-io.ts
index 5e2028de2..0743f352a 100644
--- a/app/services/utils-io.ts
+++ b/app/services/utils-io.ts
@@ -379,7 +379,8 @@ export function orderByMetaArray(
}
export function findExtensionPathForId(extensionId: string): string {
- const extensionPath = 'node_modules/' + extensionId;
+ const extensionPath =
+ (AppConfig.isWeb ? 'modules/' : 'node_modules/') + extensionId;
return extensionPath;
}