kristianfreeman / nuxt-sanity-blog

Example blog built with Nuxt.js and Sanity.io
8 stars 9 forks source link

Problem deploying on Cloudflare pages #2

Open alisonqiu opened 2 years ago

alisonqiu commented 2 years ago

Hi! I cloned and tried to deploy this repository on Cloudflare (just to see what it looks like as a Cloudflare project) but got the following error: `

16:52:18.928 tput: unknown terminal "unknown"
16:52:18.929  
16:52:18.929 ╭──────────────────────────────────────────────────────────╮
16:52:18.929 │ │
16:52:18.929 │ ✖ Nuxt Fatal Error │
16:52:18.929 │ │
16:52:18.929 │ TypeError: Cannot read property 'token' of undefined │
16:52:18.929 │ │
16:52:18.929 ╰──────────────────────────────────────────────────────────╯
16:52:18.929  
16:52:18.945 Failed: build command exited with code: 1

` Do you happen to know what could be the problem? Thank you so much!

yknsd commented 2 years ago

@alisonqiu I upgraded @nuxtjs/sanity to "^0.5.0" and it deployed successfully.

tonythomas01 commented 1 year ago

@alisonqiu I upgraded @nuxtjs/sanity to "^0.5.0" and it deployed successfully.

Worked, Thanks.