nixpkgs/pkgs/by-name/li/librechat/0003-upload-paths.patch
2025-04-14 20:17:06 +02:00

21 lines
1.0 KiB
Diff

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'),
};