I have restructured my project. Because of my previous wonky structure I had to specify schema locations for prisma genearate. I am now unable to change this schema location in vercel despite updating my package.json file. I get this error “Configuration Settings in the current Production deployment differ from your current Project Settings.” in my project settings and I have updated the overide with the correct info. After redeploying I see in the logs that it ran correctly then it tries to run the old code and fails to build.
How do I purge this old info?
[12:26:27.405] Running build in Washington, D.C., USA (East) – iad1
[12:26:27.512] Cloning github.com/PremierDevs/prealtygroup.com (Branch: development, Commit: e4ede5d)
[12:26:27.523] Skipping build cache, deployment was triggered without cache.
[12:26:28.363] Cloning completed: 854.014ms
[12:26:28.681] Running “vercel build”
[12:26:29.126] Vercel CLI 37.5.4
[12:26:29.761] Running “install” command: npm install
…
[12:26:31.967] npm warn deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
[12:26:32.172] npm warn deprecated npmlog@5.0.1: This package is no longer supported.
[12:26:32.387] npm warn deprecated har-validator@5.1.5: this library is no longer supported
[12:26:32.452] npm warn deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: formidable/VERSION_NOTES.md at master · node-formidable/formidable · GitHub
[12:26:32.470] npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
[12:26:32.635] npm warn deprecated gauge@3.0.2: This package is no longer supported.
[12:26:32.789] npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
[12:26:32.912] npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[12:26:44.769]
[12:26:44.769] > prg@1.0 postinstall
[12:26:44.769] > prisma generate
[12:26:44.769]
[12:26:45.378] Prisma schema loaded from prisma/schema.prisma
[12:26:45.923]
[12:26:45.924] Generated Prisma Client (v5.20.0) to ./node_modules/@prisma/client in 122ms
[12:26:45.924]
[12:26:45.924] Start by importing your Prisma Client (See: Introduction to Prisma Client | Prisma Documentation)
[12:26:45.924]
…
[12:26:46.962] Error: Could not load --schema
from provided path src/lib/server/prisma/schema.prisma
: file or directory not found
[12:26:46.973] Error: Command “prisma generate --schema=./src/lib/server/prisma/schema.prisma && npm run build” exited with 1
[12:26:47.140]