31416/frontend/next.config.mjs
2025-05-11 09:57:47 +00:00

57 lines
970 B
JavaScript

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