punimtag/viewer-frontend/next.config.ts
Tanya ac05c00bd6
All checks were successful
CI / skip-ci-check (pull_request) Successful in 1m50s
CI / lint-and-type-check (pull_request) Successful in 2m28s
CI / python-lint (pull_request) Successful in 2m14s
CI / test-backend (pull_request) Successful in 4m8s
CI / build (pull_request) Successful in 4m55s
CI / secret-scanning (pull_request) Successful in 1m58s
CI / dependency-scan (pull_request) Successful in 1m55s
CI / sast-scan (pull_request) Successful in 3m2s
CI / workflow-summary (pull_request) Successful in 1m49s
chore: Improve CI workflow with retry logic for package installation
This commit enhances the CI workflow by adding retry logic for package installation in the Debian environment. It addresses transient issues with Debian mirror sync by allowing up to three attempts to install necessary packages, improving the reliability of the CI process. Additionally, it cleans the apt cache before retrying to ensure a fresh attempt.

Also, it removes unused local patterns configuration from the Next.js setup and adds an unoptimized prop to the PhotoGrid component for better image handling based on the URL state.
2026-01-22 11:40:16 -05:00

28 lines
829 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
images: {
// Configure remote patterns for external image sources (SharePoint, CDN, etc.)
remotePatterns: [
// SharePoint Online (Microsoft 365)
{
protocol: 'https',
hostname: '**.sharepoint.com',
},
// SharePoint Server (on-premises) - update with your domain
// Uncomment and update if using on-premises SharePoint:
// {
// protocol: 'https',
// hostname: 'sharepoint.yourcompany.com',
// },
// Add other CDN or image hosting domains as needed
],
// Enable image optimization in production
// In development, images are unoptimized for faster iteration
unoptimized: process.env.NODE_ENV === 'development',
},
};
export default nextConfig;