Eric Jacobsen
Eric Jacobsen
I'm perhaps a little two dense to understand the utility of `[internalGroqReferenceTo]`, so I'm just peppering my generated typefiles thusly for for now: ``` asset?: SanityImageAsset & { _ref: string...
This refined version @evankirkiles ’s bit above worked for me: ``` export function resolveReference(obj: { _type: 'reference' [internalGroqTypeReferenceTo]?: T }) { if (obj._type === 'reference') throw new Error('Asset reference has...
I had a similar need (in my case, a webhook that sucks in product descriptions from Shopify into Sanity). I came across this: `https://www.npmjs.com/package/%40sanity/block-tools` Unfortunately it needs to be run...
I’m seeing this same issue. ``` import { createClient } from "next-sanity" export default async function Home() { const res = await fetch("https://api.vercel.app/blog") const page = await res.json() // ^...
Now that the [PreviewKit is being retired](https://www.sanity.io/plugins/preview-kit) (why??), `next-sanity` is going to become more important if not necessary.
I encountered this because I have not given Amazon my telephone number. Manual login worked great. Thank you!
This appears to work great in MacOS 15.
note: when switching to Node v20, the error message changes to: ``` [error] require() of ES Module /Users/wvgg/projects/sanity-next-redirects/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/@sanity/pkg-utils/dist/index.js from /Users/wvgg/Sites/_open_source_projects/sanity-next-redirects/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@sanity/plugin-kit/dist/_chunks-cjs/link-watch.js not supported. Instead change the require of index.js in /Users/wvgg/projects/sanity-next-redirects/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@sanity/plugin-kit/dist/_chunks-cjs/link-watch.js...
I have managed to get things working with two steps: - downgrade to `"@sanity/pkg-utils": "8.1.12"` - add `"yalc": "1.0.0-pre.53"` as a dev dependency. As it stands, I think this repo...