mirror of
https://github.com/hexastack/hexabot
synced 2024-12-28 23:02:03 +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: {
|
options: {
|
||||||
context: {
|
context: {
|
||||||
appName: config.parameters.appName,
|
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)
|
? 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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user