Skip to content

Commit

Permalink
fix: fix global definition in vite config (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimin-Jin authored Nov 29, 2024
1 parent 9d901be commit 3e92d6a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions hello-world-bot-with-tab/tab/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import fs from "fs";

export default defineConfig({
plugins: [react()],
define: {
global: 'globalThis',
},
server: {
port: 53000,
define: {
global: 'globalThis',
},
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,
Expand Down
6 changes: 3 additions & 3 deletions hello-world-teams-tab-and-outlook-add-in/tab/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import fs from "fs";

export default defineConfig({
plugins: [react()],
define: {
global: 'globalThis',
},
server: {
port: 53000,
define: {
global: 'globalThis',
},
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,
Expand Down
6 changes: 3 additions & 3 deletions intelligent-data-chart-generator/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import fs from "fs";

export default defineConfig({
plugins: [react()],
define: {
global: 'globalThis',
},
server: {
port: 53000,
define: {
global: 'globalThis',
},
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,
Expand Down
6 changes: 3 additions & 3 deletions team-central-dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import fs from "fs";

export default defineConfig({
plugins: [react()],
define: {
global: 'globalThis',
},
server: {
port: 53000,
define: {
global: 'globalThis',
},
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,
Expand Down

0 comments on commit 3e92d6a

Please sign in to comment.