feat: add seed.js for database seeding functionality
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user