Refactor: adapt the api logic to use frontendPath environment variable

This commit is contained in:
yassinedorbozgithub 2024-12-01 10:01:00 +01:00
parent e8751d04a3
commit a3bd044509
3 changed files with 1 additions and 3 deletions

View File

@ -75,7 +75,7 @@ const i18nOptions: I18nOptions = {
options: {
context: {
appName: config.parameters.appName,
appUrl: config.parameters.appUrl,
appUrl: config.frontendPath,
},
},
},

View File

@ -112,7 +112,6 @@ export const config: Config = {
? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)
: 2000000,
appName: 'Hexabot.ai',
appUrl: 'http://localhost:8081',
},
pagination: {
limit: 10,

View File

@ -81,7 +81,6 @@ export type Config = {
storageMode: 'disk' | 'memory';
maxUploadSize: number;
appName: string;
appUrl: string;
};
pagination: {
limit: number;