Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ ENV DATABASE_URL="file:./dev.db"
RUN \
# TODO: This initalizes the database. But we should probably remove this later.
pnpm --filter server prisma migrate reset --force && \
# Build the monorepo packages.
# Build the monorepo packages
pnpm build && \
# Generate the prisma client
pnpm --filter server prisma generate && \
# Build the server.
pnpm --filter server build && \
# Create an isolated deployment for the server.
pnpm --filter server deploy --prod deployment --legacy && \
# Move the runtime build artifacts into a separate directory.
mkdir -p deployment/out && mv deployment/dist deployment/prisma deployment/node_modules deployment/package.json deployment/out && \
# Generate the prisma client
(cd deployment/out && pnpx prisma generate)
mkdir -p deployment/out && mv deployment/dist deployment/prisma deployment/node_modules deployment/package.json deployment/out

# Slim runtime image.
FROM node:22-alpine AS server
Expand Down
5 changes: 3 additions & 2 deletions apps/server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
output = "generated/client"
provider = "prisma-client"
output = "generated/client"
moduleFormat = "esm"
Copy link

Copilot AI May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a brief comment explaining the purpose of setting 'moduleFormat' to 'esm' to provide clarity on its role in the new Prisma client generation workflow.

Copilot uses AI. Check for mistakes.

}

datasource db {
Expand Down
Loading