ndimatteo / HULL

💀 Headless Shopify Starter – powered by Next.js + Sanity.io
https://hull.dev
MIT License
1.38k stars 173 forks source link

Cannot develop locally although app running on vercel #70

Closed dev-rroslan closed 2 years ago

dev-rroslan commented 2 years ago

hi, I clone https://github.com/ndimatteo/HULL.git and deploy on sanity. The apps is running OK on vercel. However I cannot run it locally for development. I get this error: error - Failed to load next.config.js, I have tried using node 12.x, 14.x, 16.x but I get same error. When I run vercel env pull, I get this error: Error! The Secret "sec_nMOI8Xhg6lD5DndLXHpcdPDM" is not decryptable. I am new and I hope someone knows how to help me fix this.

I run it like this and it builds: vercel -e NODE_ENV=development -e SECRET=sec_nMOI8Xhg6lD5DndLXHpcdPDM

ndimatteo commented 2 years ago

Hey there @dev-rroslan, it's hard to say from your notes what the problem is, but it sounds like you've modified the dev/build scripts heavily. Please try using the default development and build scripts, and put env variables in a .env file.

Steps for all of this are outlined in the readme file as well, I'd suggest following along there first to get everything up and running both locally and through Vercel.