Fix Docker build: add .npmrc for Tremor peer dep conflict
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m44s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m44s
@tremor/react@3.18.7 requires react@^18 but project uses react@19. Adding .npmrc with legacy-peer-deps=true and copying it in Dockerfiles so npm ci resolves correctly. Also fix implicit any in seed file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@ RUN apk add --no-cache libc6-compat
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* .npmrc* ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ WORKDIR /app
|
|||||||
RUN apk add --no-cache libc6-compat openssl
|
RUN apk add --no-cache libc6-compat openssl
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* .npmrc* ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install && npm install tailwindcss-animate
|
RUN npm install && npm install tailwindcss-animate
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ async function main() {
|
|||||||
const existingTags = await prisma.expertiseTag.findMany({
|
const existingTags = await prisma.expertiseTag.findMany({
|
||||||
select: { name: true },
|
select: { name: true },
|
||||||
})
|
})
|
||||||
const existingNames = new Set(existingTags.map((t) => t.name))
|
const existingNames = new Set(existingTags.map((t: { name: string }) => t.name))
|
||||||
|
|
||||||
// Filter out tags that already exist
|
// Filter out tags that already exist
|
||||||
const newTags = EXPERTISE_TAGS.filter((t) => !existingNames.has(t.name))
|
const newTags = EXPERTISE_TAGS.filter((t) => !existingNames.has(t.name))
|
||||||
|
|||||||
Reference in New Issue
Block a user