Skip to content

fix(api): fix vercel cache for prisma generated#76

Merged
duongdev merged 1 commit into
mainfrom
06-27-fix_api_fix_vercel_cache_for_prisma_generated
Jun 27, 2024
Merged

fix(api): fix vercel cache for prisma generated#76
duongdev merged 1 commit into
mainfrom
06-27-fix_api_fix_vercel_cache_for_prisma_generated

Conversation

@duongdev

@duongdev duongdev commented Jun 27, 2024

Copy link
Copy Markdown
Member

TL;DR

Updated the build script in package.json to include prisma generate before running next build. Kudos to https://www.prisma.io/docs/orm/more/help-and-troubleshooting/help-articles/vercel-caching-issue

What changed?

Modified the build script in the package.json file from next build to prisma generate && next build.

How to test?

Run the build script using npm run build and ensure that Prisma client is generated before the Next.js build process is initiated.

Why make this change?

This change ensures that the Prisma client is always up-to-date before building the Next.js application, preventing potential runtime issues related to the database schema.


Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @duongdev and the rest of your teammates on Graphite Graphite

Copy link
Copy Markdown
Member Author

Merge activity

@duongdev duongdev deleted the 06-27-fix_api_fix_vercel_cache_for_prisma_generated branch June 27, 2024 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant