Files
nobat724_front/next.config.js
T
hamedandClaude Opus 4.8 f3192945c7 fix(doctors): resolve next/image http host and MUI v5 loading prop
- افزودن الگوی http برای api.clinic-pro.ir به next.config (عکس‌های بیمه
  با http برمی‌گردند و خطای 500 next/image می‌دادند)
- جایگزینی prop loading نامعتبر روی Button با disabled در SendReq/ButtonApply
  (loading فقط در MUI v6+ پشتیبانی می‌شود؛ این پروژه v5 است و lab نصب نیست)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 00:15:10 +03:30

38 lines
812 B
JavaScript

// next.config.js
const nextConfig = {
// Add other configurations below
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'api.clinic-pro.ir',
},
{
protocol: 'http',
hostname: 'api.clinic-pro.ir',
},
{
protocol: 'https',
hostname: 'back-dev.clinic-pro.ir',
},
{
protocol: 'https',
hostname: 'clinic-pro-back.ddev.site',
},
],
},
env: {
// Make DEV_MODE available to the application
DEV_MODE: process.env.DEV_MODE,
},
// Additional configuration for better Docker support
trailingSlash: false,
compress: true,
poweredByHeader: false,
// Enable standalone output for Docker
output: 'standalone',
};
module.exports = nextConfig;