/** @type {import('next').NextConfig} */ const nextConfig = { images: { remotePatterns: [ { protocol: 'http', hostname: 'web', port: '8000', // where Django serves media pathname: '/storage/**', // storage/avatars, images/link_groups, etc. }, { protocol: 'http', hostname: '127.0.0.1', port: '8000', // where Django serves media pathname: '/storage/**', // storage/avatars, images/link_groups, etc. }, { protocol: 'http', hostname: 'localhost', port: '8000', // where Django serves media pathname: '/storage/**', // storage/avatars, images/link_groups, etc. }, ], }, // proxy all /api/* calls to Django async rewrites() { return [ { source: '/api/:path*', destination: 'http://web:8000/api/:path*', }, ]; }, eslint: { // Предупреждение: это позволяет продакшн сборки завершаться успешно даже если // ваш проект имеет ошибки ESLint. ignoreDuringBuilds: true, }, typescript: { // Опасно: это позволяет продакшн сборки завершаться успешно даже если // ваш проект имеет ошибки TypeScript. ignoreBuildErrors: true, }, // Добавляем настройки для правильной работы в development trailingSlash: false, skipTrailingSlashRedirect: true, }; module.exports = nextConfig;