Files
links/.history/frontend/linktree-frontend/next.config_20250506183914.ts
2025-05-06 20:44:33 +09:00

29 lines
868 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @type {import('next').NextConfig} */
const nextConfig = {
// Разрешаем 127.0.0.1 и localhost в качестве источников картинок
images: {
domains: ['127.0.0.1', 'localhost'],
},
// Разрешаем в деве обращения с вашего адреса
allowedDevOrigins: [
'http://localhost:3001',
'http://192.168.219.114:3001',
'http://0.0.0.0:3001',
'http://localhost:3000',
'http://192.168.219.114:3000',
],
// Проксируем все запросы /api/* на Django
async rewrites() {
return [
{
source: '/api/:path*', // локальный путь на фронте
destination: 'http://127.0.0.1:8000/api/:path*' // куда реально уходит запрос
}
]
},
};
module.exports = nextConfig;