mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 23:47:29 +01:00
Few more build fixes
This commit is contained in:
@@ -469,12 +469,11 @@ export default class Explorer {
|
|||||||
|
|
||||||
private async generateConversationToken() {
|
private async generateConversationToken() {
|
||||||
if (!userContext.databaseAccount || !userContext.databaseAccount.id) {
|
if (!userContext.databaseAccount || !userContext.databaseAccount.id) {
|
||||||
console.error("Database account undefined");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const url = `${configContext.JUNO_ENDPOINT}/api/chatbot/bot${userContext.databaseAccount.id}/conversationToken`;
|
const url = `${configContext.JUNO_ENDPOINT}/api/chatbot/bot${userContext.databaseAccount.id}/conversationToken`;
|
||||||
const authorizationHeader = getAuthorizationHeader();
|
const authorizationHeader = getAuthorizationHeader();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
|||||||
+2
-2
@@ -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
|
// These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory
|
||||||
compress: true,
|
compress: true,
|
||||||
mangle: {
|
mangle: {
|
||||||
keep_fnames: true,
|
keep_fnames: false,
|
||||||
keep_classnames: true,
|
keep_classnames: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user