fix: Prisma binary download for Iran servers
This commit is contained in:
13
scripts/generate-prisma-for-deploy.sh
Normal file
13
scripts/generate-prisma-for-deploy.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# این اسکریپت باید روی سیستمی با دسترسی به اینترنت اجرا شود
|
||||
# و فایلهای generate شده را commit کنید
|
||||
|
||||
echo "Generating Prisma Client..."
|
||||
npx prisma generate
|
||||
|
||||
echo "Prisma Client generated successfully!"
|
||||
echo "Now commit the generated files:"
|
||||
echo "git add node_modules/.prisma node_modules/@prisma"
|
||||
echo "git commit -m 'Add pre-generated Prisma client for deployment'"
|
||||
echo "git push"
|
||||
Reference in New Issue
Block a user