Fix Docker Prisma generate and country types
This commit is contained in:
@@ -2,6 +2,8 @@ FROM node:20-alpine AS deps
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=development
|
||||
ENV PRISMA_ENGINES_MIRROR=https://binaries.prismacdn.com
|
||||
ENV PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
@@ -14,6 +16,7 @@ ARG NEXTAUTH_URL
|
||||
ENV DATABASE_URL=$DATABASE_URL
|
||||
ENV NEXTAUTH_URL=$NEXTAUTH_URL
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV PRISMA_ENGINES_MIRROR=https://binaries.prismacdn.com
|
||||
ENV PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { db } from "@/lib/db";
|
||||
import type { Prisma } from "@prisma/client";
|
||||
import type { Prisma } from "@/lib/generated/prisma";
|
||||
import Link from "next/link";
|
||||
import CountryFlag from "@/components/CountryFlag";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user