- Get a postgres database and add URL to your schema
npm i
npx prisma db push --force-reset
npx vercel
- Publish to your personal account
- Press enter (yes) until project is deploying
- Inspect the Vercel build console
- Head to the
/api
route in your browser eg.https://my-project.vercel.app/api
- You should see
{ ok: true }
- Now open the schema, uncomment name
npx prisma db push
(no need to force reset)- Now open
index.js
, uncommentname
npx vercel
- Inspect the Vercel build console
- Head to the
/api
route in your browser - 💥
{ "error": "Unknown arg 'name' in data.name for type UserCreateInput. Did you mean 'nick'?\n" }
- Deploy again but force clear the cache with
npx vercel --force
- Error is gone