Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
RaunoT authored Jul 24, 2024
2 parents a423835 + 6f2f1c1 commit 7c9fdd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
COPY --from=builder /app/config ./config

# Set the correct permission for prerender cache
# Set the correct permission for prerender cache and config
RUN mkdir .next
RUN chown nextjs:nodejs .next
RUN mkdir .next/cache
RUN chown -R nextjs:nodejs .next
RUN chown -R nextjs:nodejs config
RUN chmod -R 777 .next/cache
RUN chmod -R 777 config

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
Expand Down
2 changes: 0 additions & 2 deletions src/utils/getSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ export default async function getSettings(): Promise<Settings> {

return DEFAULT_SETTINGS
} else {
console.error('Error reading settings file:', error)
throw new Error('Could not read settings file')
}
}
} catch (error) {
console.error('Failed to handle settings file:', error)
throw new Error('Unexpected error handling settings file')
}
}

0 comments on commit 7c9fdd3

Please sign in to comment.