new commit

This commit is contained in:
54CHA
2025-07-19 17:56:06 +03:00
commit 4153e2c00a
140 changed files with 66097 additions and 0 deletions

62
next.config.js Normal file
View File

@ -0,0 +1,62 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
unoptimized: true,
dangerouslyAllowSVG: true,
contentDispositionType: 'attachment',
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
remotePatterns: [
{
protocol: 'https',
hostname: '**.wbbasket.ru',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: '**.wbstatic.net',
port: '',
pathname: '/**',
},
],
formats: ['image/webp'],
minimumCacheTTL: 60,
},
// Увеличиваем таймаут для API запросов
experimental: {
serverActions: {
bodySizeLimit: '2mb',
},
},
// Настройки прокси для решения проблемы с CORS
async rewrites() {
return [
{
source: '/api/:path*',
destination: '/api/:path*',
},
// Прямой доступ к статическим файлам
{
source: '/images/:path*',
destination: '/images/:path*',
},
];
},
// Повышаем лимит времени обработки запросов
serverRuntimeConfig: {
responseLimit: '5mb',
bodyParser: {
sizeLimit: '5mb',
},
},
// Настройки для оптимизации и кэширования
staticPageGenerationTimeout: 180,
distDir: '.next',
// Отключаем строгий режим для изображений
typescript: {
ignoreBuildErrors: false,
},
};
module.exports = nextConfig;