From d24f8942ddd9a8751d079386866c212872f7d1c3 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 5 Oct 2025 16:23:22 +0300 Subject: [PATCH] fix: update file paths in path utilities to reflect new content directory structure --- Dockerfile | 5 ++--- Overview.json => content/Overview.json | 0 ReleaseNotes.json => content/ReleaseNotes.json | 0 src/backend/utils/paths.ts | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) rename Overview.json => content/Overview.json (100%) rename ReleaseNotes.json => content/ReleaseNotes.json (100%) diff --git a/Dockerfile b/Dockerfile index 8b1aae1..3b98e16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,9 +76,8 @@ RUN npm ci --only=production --workspace=bitip-backend && \ # Copy built artifacts from builder COPY --from=builder /app/dist ./dist -# Copy configuration files needed at runtime -COPY --from=builder /app/ReleaseNotes.json ./ -COPY --from=builder /app/Overview.json ./ +# Copy content files needed at runtime +COPY --from=builder /app/content ./content # Create directory for MaxMind databases RUN mkdir -p /usr/share/maxmind && \ diff --git a/Overview.json b/content/Overview.json similarity index 100% rename from Overview.json rename to content/Overview.json diff --git a/ReleaseNotes.json b/content/ReleaseNotes.json similarity index 100% rename from ReleaseNotes.json rename to content/ReleaseNotes.json diff --git a/src/backend/utils/paths.ts b/src/backend/utils/paths.ts index 123fe9a..65034ad 100644 --- a/src/backend/utils/paths.ts +++ b/src/backend/utils/paths.ts @@ -29,8 +29,8 @@ const resolveFilePath = (...relativePath: string[]): string => { }; const envPath = resolveFilePath('.env'); -const releaseNotesPath = resolveFilePath('ReleaseNotes.json'); -const overviewPath = resolveFilePath('Overview.json'); +const releaseNotesPath = resolveFilePath('content', 'ReleaseNotes.json'); +const overviewPath = resolveFilePath('content', 'Overview.json'); const frontendPrefix = isProduction ? 'dist' : 'src'; const frontendPath = resolveFilePath(frontendPrefix, 'frontend');