You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all
i got this error when i setup sanity and next.js app i have shared screen shot for that error plz help me out if any one resolve that kind of issue in past.
error lib\sanity.api.ts (30:10) @ assertValue
error Error: Missing environment variable: NEXT_PUBLIC_SANITY_DATASET
28 | function assertValue(v: T | undefined, errorMessage: string): T {
29 | if (v === undefined) {
30 | throw new Error(errorMessage)
| ^
31 | }
32 |
33 | return v
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
i got this error when i setup sanity and next.js app i have shared screen shot for that error plz help me out if any one resolve that kind of issue in past.
28 | function assertValue(v: T | undefined, errorMessage: string): T {
29 | if (v === undefined) {
Beta Was this translation helpful? Give feedback.
All reactions