Skip to content

Commit 6ae741c

Browse files
committed
fix: prisma uses DIRECT_URL
1 parent 97df71f commit 6ae741c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.env*

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ FROM base AS build
1010

1111
WORKDIR /build
1212
ARG SQL_GENERATE_URL
13-
ENV DATABASE_URL=$SQL_GENERATE_URL
14-
RUN test -n "${DATABASE_URL}"
13+
ENV DIRECT_URL=$SQL_GENERATE_URL
14+
RUN test -n "${DIRECT_URL}"
1515
COPY . .
1616
RUN --mount=type=cache,target=~/.bun/install bun install --frozen-lockfile --ignore-scripts
1717
RUN cd server; bun prisma generate --sql

0 commit comments

Comments
 (0)