summaryrefslogtreecommitdiff
path: root/pkgs/by-name/li/librechat/0003-upload-paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/li/librechat/0003-upload-paths.patch')
-rw-r--r--pkgs/by-name/li/librechat/0003-upload-paths.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/by-name/li/librechat/0003-upload-paths.patch b/pkgs/by-name/li/librechat/0003-upload-paths.patch
new file mode 100644
index 000000000000..50ec5380c545
--- /dev/null
+++ b/pkgs/by-name/li/librechat/0003-upload-paths.patch
@@ -0,0 +1,20 @@
+diff --git a/api/config/paths.js b/api/config/paths.js
+index 165e9e6..fc85083 100644
+--- a/api/config/paths.js
++++ b/api/config/paths.js
+@@ -2,13 +2,13 @@ const path = require('path');
+
+ module.exports = {
+ root: path.resolve(__dirname, '..', '..'),
+- uploads: path.resolve(__dirname, '..', '..', 'uploads'),
++ uploads: path.resolve('.', 'uploads'),
+ clientPath: path.resolve(__dirname, '..', '..', 'client'),
+ dist: path.resolve(__dirname, '..', '..', 'client', 'dist'),
+ publicPath: path.resolve(__dirname, '..', '..', 'client', 'public'),
+ fonts: path.resolve(__dirname, '..', '..', 'client', 'public', 'fonts'),
+ assets: path.resolve(__dirname, '..', '..', 'client', 'public', 'assets'),
+- imageOutput: path.resolve(__dirname, '..', '..', 'client', 'public', 'images'),
++ imageOutput: path.resolve('.', 'images'),
+ structuredTools: path.resolve(__dirname, '..', 'app', 'clients', 'tools', 'structured'),
+ pluginManifest: path.resolve(__dirname, '..', 'app', 'clients', 'tools', 'manifest.json'),
+ };