Skip to content

Commit

Permalink
fix(nuxt): merge options with public runtime config (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
enkot authored Jun 22, 2024
1 parent 3a6c840 commit 54971c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nuxt/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineNuxtModule<ModuleOptions>({
const { resolve } = createResolver(import.meta.url)

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

// Add templates (options and directives)
addPlugin(resolve('./runtime/templates/motion'))
Expand Down

0 comments on commit 54971c6

Please sign in to comment.