Skip to content

Commit

Permalink
fix: 🩹 useOaConfig merge runtimeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgbn committed Jun 19, 2024
1 parent 272e458 commit caec6c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/server/helpers/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ModuleOptions } from '../../types'
// @ts-expect-error : we are importing from the virtual file system
import config from '#oa-config'
import { useRuntimeConfig } from '#imports'

export const useOaConfig = () => config as ModuleOptions
export const useOaConfig = (): ModuleOptions => ({ ...config, ...useRuntimeConfig().oa })

0 comments on commit caec6c4

Please sign in to comment.