From 2184668ce0fe96b943c3c95e0348d28f9f9c681c Mon Sep 17 00:00:00 2001 From: techpixel <68567672+techpixel@users.noreply.github.com> Date: Wed, 21 Jan 2026 18:46:53 -0500 Subject: [PATCH] fix: externalize prisma? --- astro/Dockerfile | 1 + astro/astro.config.mjs | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/astro/Dockerfile b/astro/Dockerfile index 166818c..da4f972 100644 --- a/astro/Dockerfile +++ b/astro/Dockerfile @@ -4,6 +4,7 @@ FROM base AS deps WORKDIR /app COPY package*.json ./ COPY prisma ./prisma +COPY prisma.config.ts ./ RUN npm ci RUN npx prisma generate diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index c96c547..3cbdb87 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -16,7 +16,12 @@ export default defineConfig({ vite: { plugins: [tailwindcss()], ssr: { - external: ['@prisma/client'] + external: ['@prisma/client', /^\.\.?\/.*generated\/prisma/] + }, + build: { + rollupOptions: { + external: [/@prisma\/client/] + } } },