mirror of
https://dev.azure.com/tstanciu94/PhantomMind/_git/Bitip
synced 2025-10-13 01:52:19 +03:00
fix: update file paths in path utilities to reflect new content directory structure
This commit is contained in:
parent
30171365b3
commit
d24f8942dd
@ -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 && \
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user