feat: add seed.js for database seeding functionality
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
Najjar\NajjarV02
2026-04-15 10:49:04 +04:00
parent 22387dbfe1
commit 2397bf7f71
2 changed files with 51 additions and 8 deletions
-8
View File
@@ -15,14 +15,6 @@ ENV NEXT_TELEMETRY_DISABLED=1
# Generate Prisma client (reads prisma/schema.prisma + prisma.config.ts)
RUN npx prisma generate
# Compile seed.ts → seed.js (esbuild ships with Next.js)
RUN node_modules/.bin/esbuild prisma/seed.ts \
--bundle \
--platform=node \
--format=cjs \
--packages=external \
--outfile=prisma/seed.js
# Build Next.js — produces .next/standalone (set in next.config.mjs)
RUN npm run build