Skip to content

Commit 54971c6

Browse files
authored
fix(nuxt): merge options with public runtime config (#204)
1 parent 3a6c840 commit 54971c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nuxt/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineNuxtModule<ModuleOptions>({
1515
const { resolve } = createResolver(import.meta.url)
1616

1717
// Push options and merge to runtimeConfig
18-
nuxt.options.runtimeConfig.motion = defu(nuxt.options.runtimeConfig?.motion || {}, options)
18+
nuxt.options.runtimeConfig.public.motion = defu(nuxt.options.runtimeConfig.public.motion || {}, options)
1919

2020
// Add templates (options and directives)
2121
addPlugin(resolve('./runtime/templates/motion'))

0 commit comments

Comments
 (0)