Skip to content

Commit

Permalink
fix: add sanity options from runtimeconfig to module defaults (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
YannicEl authored Feb 19, 2022
1 parent ee743c5 commit a167ef2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default defineNuxtModule<SanityModuleOptions>({
withCredentials: false,
additionalClients: {},
...getDefaultSanityConfig(resolve(nuxt.options.rootDir, './sanity.json')),
...nuxt.options.publicRuntimeConfig.sanity
}),
async setup (options, nuxt) {
if (!('useCdn' in options)) {
Expand Down

0 comments on commit a167ef2

Please sign in to comment.