N
Nuxt6mo ago
Oregon

Nuxt Sanity Module - disableSmartCdn is working?

I have a nuxt project with useCdn: true (and dynamic pages in isr: true) and when I'm in Preview Mode (/my-url?preview=true) I need the fresh data (like drafts) to show it in the preview iframe on sanity studio. The problem is that the data is always from CDN (so old data). I saw on the docs that the module has disableSmartCdn by default (that is my case), so I don't know if I'm doing wrong or what It is like the preview mode is not recognized: Docs link: https://sanity.nuxtjs.org/getting-started/configuration#disablesmartcdn
Configuration
By default, @nuxtjs/sanity will look for a ~~/cms/sanity.config.ts file relative to your project's root directory, and it will read your projectId and dataset from there.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server