Few more build fixes

This commit is contained in:
Bala Lakshmi Narayanasami
2022-07-20 15:34:35 +05:30
parent e3e05e832a
commit 6b689d3660
2 changed files with 3 additions and 4 deletions

View File

@@ -469,12 +469,11 @@ export default class Explorer {
private async generateConversationToken() {
if (!userContext.databaseAccount || !userContext.databaseAccount.id) {
console.error("Database account undefined");
return;
}
const url = `${configContext.JUNO_ENDPOINT}/api/chatbot/bot${userContext.databaseAccount.id}/conversationToken`;
const authorizationHeader = getAuthorizationHeader();
try {
const response = await fetch(url, {
method: "GET",

View File

@@ -246,8 +246,8 @@ module.exports = function (_env = {}, argv = {}) {
// These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory
compress: true,
mangle: {
keep_fnames: true,
keep_classnames: true,
keep_fnames: false,
keep_classnames: false,
},
},
}),