Skip to content

Commit

Permalink
Update nuxt.config.ts
Browse files Browse the repository at this point in the history
- Replaced `undefined` environment variables with empty string.
- Filtered `undefined` elements in `script` array using `filter(Boolean)`.
  • Loading branch information
mavci42 authored Feb 7, 2025
1 parent cd3bbfa commit 82de89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineNuxtConfig({
defer: true,
}
: undefined,
],
].filter(Boolean),
},
},
plugins: [],
Expand Down Expand Up @@ -88,7 +88,7 @@ export default defineNuxtConfig({
"DATAPLANE_URL",
"GIT_COMMIT_HASH",
"GIT_REPO_URL",
].map((key) => [`process.env.${key}`, JSON.stringify(process.env[key])])
].map((key) => [`process.env.${key}`, JSON.stringify(process.env[key] || "")])
),
css: {
preprocessorOptions: {
Expand Down

0 comments on commit 82de89a

Please sign in to comment.