31463/frontend/next.config.mjs
Flatlogic Bot ad1a5d4ba5 pages
2025-05-12 22:27:42 +00:00

68 lines
1.1 KiB
JavaScript

/**
* @type {import('next').NextConfig}
*/
const output = process.env.NODE_ENV === 'production' ? 'export' : 'standalone';
const nextConfig = {
trailingSlash: true,
distDir: 'build',
output,
basePath: '',
devIndicators: {
position: 'bottom-left',
},
typescript: {
ignoreBuildErrors: true,
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
async rewrites() {
return [
{
source: '/services',
destination: '/web_pages/services',
},
{
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: '/courses',
destination: '/web_pages/courses',
},
{
source: '/courses/:id',
destination: '/web_pages/courses/:id',
},
];
},
};
export default nextConfig;