31383/frontend/next.config.mjs
2025-05-10 07:44:18 +00:00

52 lines
887 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: '/home',
destination: '/web_pages/home',
},
{
source: '/about',
destination: '/web_pages/about',
},
{
source: '/pricing',
destination: '/web_pages/pricing',
},
{
source: '/contact',
destination: '/web_pages/contact',
},
];
},
};
export default nextConfig;