Files
lehuo/apps/api/patch-prisma.sh
T

16 lines
518 B
Bash
Raw Normal View History

#!/bin/sh
# Patch Prisma client for runtime
PRISMA_CLIENT_PATH="/app/node_modules/.pnpm/@prisma+client@7.9.1_prisma@7.9.1_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__r_28fab601f639d915a0a31cb79a401325/node_modules/@prisma/client/default.js"
TARGET_DIR="/app/node_modules/.prisma/client"
if [ ! -d "$TARGET_DIR" ]; then
mkdir -p "$TARGET_DIR"
fi
if [ -f "$PRISMA_CLIENT_PATH" ] && [ ! -f "$TARGET_DIR/default.js" ]; then
cp "$PRISMA_CLIENT_PATH" "$TARGET_DIR/default.js"
fi
# Start the API
exec "$@"