Open gercordero opened 7 months ago
@gercordero I also started getting this issue after I upgraded Sanity to ^3.40.0
@gercordero, in the sanity config, please include the origin
const SANITY_STUDIO_PREVIEW_URL = (
process.env.SANITY_STUDIO_PREVIEW_URL
|| 'http://localhost:3000'
)
pages({
previewUrl: {
origin: SANITY_STUDIO_PREVIEW_URL,
previewMode: {
enable: '/api/draft',
},
},
creatablePages: ['page'],
})
@oybek-daniyarov Legend, that fixed it! Should I leave this issue open so this can be documented in the READ.me file?
Hello, I was trying out your sections example but the Pages preview tab is crashing for me. I haven't changed anything from the example apart from adding my own
.env
variables.This is the error I'm getting:
Here you also have a video:
https://github.com/tinloof/sanity-kit/assets/13878860/70cab0d4-4a3e-424c-b752-7e97a36b5a24
Any clues on what is going one? Thank you!