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: { options: {
context: { context: {
appName: config.parameters.appName, 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) ? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)
: 2000000, : 2000000,
appName: 'Hexabot.ai', appName: 'Hexabot.ai',
appUrl: 'http://localhost:8081',
}, },
pagination: { pagination: {
limit: 10, limit: 10,

View File

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