32909/frontend/next.config.mjs
2025-07-20 03:33:48 +00:00

58 lines
941 B
JavaScript

/**
* @type {import('next').NextConfig}
*/
import { i18n } from './next-i18next.config.mjs';
const output = 'standalone';
const nextConfig = {
trailingSlash: true,
i18n,
distDir: 'build',
output,
basePath: '',
devIndicators: {
position: 'bottom-left',
},
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
async rewrites() {
return [
{
source: '/home',
destination: '/web_pages/home',
},
{
source: '/services',
destination: '/web_pages/services',
},
{
source: '/contact',
destination: '/web_pages/contact',
},
{
source: '/reportar',
destination: '/web_pages/reportar',
},
];
},
};
export default nextConfig;