Skip to content
Advertisement

Tag: sanity

add block-input from sanity.io to next.js blog post

I’m developing a blog on next.js with sanity.io, and I’m having trouble using the code-input plugin. What I do have I’m able to use the code component block on sanity, which looks something like this: Everything good on the sanity side. My problem comes with using it on the next.js [slug].js file. I have this error prompt out: This issue

Debugging Sanity exec with VS Code

I’m using Sanity (sanity.io headless CMS) and doing some data migration with the CLI. How do I (or, is it at all possible) to some how attach the vscode debugger and stop at breakpoints in migration scripts. I’m running the following cli migration script: sanity exec migrate.js –with-user-token. I would like to stop at breakpoints in migrate.js? I’ve managed debugging

Advertisement