Skip to content

millsp/vercel-prisma-cache-issue-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduction steps

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published