Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

duongdev
Copy link
Member

@duongdev duongdev commented Jun 27, 2024

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
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

@duongdev duongdev merged commit be1245e into main Jun 27, 2024
4 checks passed
Copy link
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