Skip to content

Commit ee637c2

Browse files
committed
fix: use nullish coalescing operator for baseURL in Nuxt configuration
1 parent fac740d commit ee637c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import process from 'node:process'
44
export default defineNuxtConfig({
55
// GitHub Pages configuration
66
app: {
7-
baseURL: process.env.NUXT_APP_BASE_URL || '/',
7+
baseURL: process.env.NUXT_APP_BASE_URL ?? '/',
88
},
99

1010
colorMode: {

0 commit comments

Comments
 (0)