mirror of
https://github.com/hexastack/hexabot
synced 2024-12-28 06:42:23 +00:00
Refactor: adapt the api logic to use frontendPath environment variable
This commit is contained in:
parent
e8751d04a3
commit
a3bd044509
@ -75,7 +75,7 @@ const i18nOptions: I18nOptions = {
|
||||
options: {
|
||||
context: {
|
||||
appName: config.parameters.appName,
|
||||
appUrl: config.parameters.appUrl,
|
||||
appUrl: config.frontendPath,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -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,
|
||||
|
@ -81,7 +81,6 @@ export type Config = {
|
||||
storageMode: 'disk' | 'memory';
|
||||
maxUploadSize: number;
|
||||
appName: string;
|
||||
appUrl: string;
|
||||
};
|
||||
pagination: {
|
||||
limit: number;
|
||||
|
Loading…
Reference in New Issue
Block a user