mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: remove max upload size from settings / use env var instead to centralize the config
This commit is contained in:
@@ -6,8 +6,13 @@
|
||||
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
|
||||
*/
|
||||
|
||||
export const DEFAULT_CONFIG = {
|
||||
import { Config } from "../types/config.types";
|
||||
|
||||
export const DEFAULT_CONFIG: Config = {
|
||||
apiUrl: process.env.REACT_APP_WIDGET_API_URL || "http://localhost:4000",
|
||||
channel: process.env.REACT_APP_WIDGET_CHANNEL || "console-channel",
|
||||
language: "en",
|
||||
maxUploadSize: process.env.UPLOAD_MAX_SIZE_IN_BYTES
|
||||
? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)
|
||||
: 20 * 1024 * 1024, // 20 MB in bytes
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user