Skip to content

Commit 10b8ae2

Browse files
chore: use nullish coalescing
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 0fea211 commit 10b8ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default defineNuxtModule<ModuleOptions>({
105105
async setup(options, nuxt) {
106106
const defaultLocale = process.env.DEFAULT_LOCALE ?? options.defaultLocale ?? 'en'
107107

108-
const isSSG = nuxt.options.nitro.static || (nuxt.options as any)._generate /* TODO: remove in future */
108+
const isSSG = nuxt.options.nitro.static ?? (nuxt.options as any)._generate /* TODO: remove in future */
109109
const isCloudflarePages = nuxt.options.nitro.preset?.startsWith('cloudflare')
110110

111111
const logger = useLogger('nuxt-i18n-micro')

0 commit comments

Comments
 (0)