Files
links/frontend/linktree-frontend/next.config.js
Andrey K. Choi b1bcd85644
Some checks failed
continuous-integration/drone/push Build is failing
beta test realise
2025-11-08 20:54:06 +09:00

62 lines
1.8 KiB
JavaScript

/** @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.
},
{
protocol: 'https',
hostname: 'links.shareon.kr',
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*/',
},
{
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;