39 lines
1005 B
JavaScript
39 lines
1005 B
JavaScript
import { fileURLToPath } from 'url';
|
|
import createJiti from 'jiti';
|
|
|
|
import * as i18nConfig from './next-i18next.config.js';
|
|
|
|
createJiti(fileURLToPath(import.meta.url))('./src/env');
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
i18n: i18nConfig.default.i18n,
|
|
output: 'standalone',
|
|
typescript: { ignoreBuildErrors: true },
|
|
transpilePackages: ['@ufb/react'],
|
|
compiler: { removeConsole: process.env.NODE_ENV === 'production' },
|
|
images: { remotePatterns: [{ hostname: '*' }] },
|
|
devIndicators: false,
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/demo/feedback-writer',
|
|
destination: '/support/EGBIM_DEMO/new',
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/demo/feedback-list',
|
|
destination: '/support/EGBIM_DEMO/new',
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/demo/feedback/:feedbackId',
|
|
destination: '/support/EGBIM_DEMO/new',
|
|
permanent: false,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|