diff --git a/hello-world-bot-with-tab/tab/vite.config.ts b/hello-world-bot-with-tab/tab/vite.config.ts index 75086e29..f59da272 100644 --- a/hello-world-bot-with-tab/tab/vite.config.ts +++ b/hello-world-bot-with-tab/tab/vite.config.ts @@ -4,6 +4,9 @@ import fs from "fs"; export default defineConfig({ plugins: [react()], + define: { + global: 'globalThis', + }, server: { port: 53000, https: { diff --git a/hello-world-teams-tab-and-office-add-in/tab/vite.config.ts b/hello-world-teams-tab-and-office-add-in/tab/vite.config.ts index 75086e29..f59da272 100644 --- a/hello-world-teams-tab-and-office-add-in/tab/vite.config.ts +++ b/hello-world-teams-tab-and-office-add-in/tab/vite.config.ts @@ -4,6 +4,9 @@ import fs from "fs"; export default defineConfig({ plugins: [react()], + define: { + global: 'globalThis', + }, server: { port: 53000, https: { diff --git a/intelligent-data-chart-generator/vite.config.ts b/intelligent-data-chart-generator/vite.config.ts index c2c269f4..bf2d6164 100644 --- a/intelligent-data-chart-generator/vite.config.ts +++ b/intelligent-data-chart-generator/vite.config.ts @@ -4,6 +4,9 @@ import fs from "fs"; export default defineConfig({ plugins: [react()], + define: { + global: 'globalThis', + }, server: { port: 53000, https: { diff --git a/team-central-dashboard/vite.config.ts b/team-central-dashboard/vite.config.ts index 312e17d1..bf2d6164 100644 --- a/team-central-dashboard/vite.config.ts +++ b/team-central-dashboard/vite.config.ts @@ -4,9 +4,11 @@ import fs from "fs"; export default defineConfig({ plugins: [react()], + define: { + global: 'globalThis', + }, server: { port: 53000, - // if you are using SSL https: { cert: process.env.SSL_CRT_FILE ? fs.readFileSync(process.env.SSL_CRT_FILE) : undefined, key: process.env.SSL_KEY_FILE ? fs.readFileSync(process.env.SSL_KEY_FILE) : undefined,