@sanity/next-loader
v4.0.0
Published
> [!WARNING] > This package is replaced by [`next-sanity`].
Maintainers
Keywords
Readme
[!WARNING]
This package is replaced bynext-sanity.
Migrate to next-sanity
Replace the dependency:
npm uninstall @sanity/next-loader
npm install next-sanityReplace import statements:
-import { defineLive, isCorsOriginError } from '@sanity/next-loader'
-import { usePresentationQuery } from '@sanity/next-loader/hooks'
+import { isCorsOriginError } from 'next-sanity'
+import { defineLive } from 'next-sanity/live'
+import { usePresentationQuery } from 'next-sanity/hooks'