nuxt-modules / sanity

Sanity integration for Nuxt
https://sanity.nuxtjs.org
MIT License
211 stars 35 forks source link

feat: support reading `cms/sanity.config.ts` #977

Closed danielroe closed 3 months ago

danielroe commented 3 months ago

This does several things:

  1. by default it looks for a ~~/cms/sanity.config.* file relative to your project's root directory.
  2. it supports explicitly configuring this path with the configFile property
  3. if the path is within the nuxt project nuxt will automatically reload if the file is edited

It does fall back to the previous behaviour (looking for a sanity.json in your root directory) if there is no such file.

netlify[bot] commented 3 months ago

Deploy Preview for nuxt-sanity-module canceled.

Name Link
Latest commit 8fa3337edb393a8a575abf16b9e01b478b2dd3d4
Latest deploy log https://app.netlify.com/sites/nuxt-sanity-module/deploys/66058a312075540008786f83