fix: update file paths in path utilities to reflect new content directory structure

This commit is contained in:
Tudor Stanciu 2025-10-05 16:23:22 +03:00
parent 30171365b3
commit d24f8942dd
4 changed files with 4 additions and 5 deletions

View File

@ -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 && \

View File

@ -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');