first commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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 rewrites() {
|
||||
const internalApiBaseUrl =
|
||||
process.env.INTERNAL_API_BASE_URL ?? 'http://172.26.0.2:4000';
|
||||
|
||||
return {
|
||||
fallback: [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
destination: `${internalApiBaseUrl}/api/:path*`,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user