Files
ember-market-frontend/next.config.mjs
NotII 0fa33df2ad hmm
2025-07-17 16:07:07 +01:00

52 lines
1.0 KiB
JavaScript

import bundleAnalyzer from '@next/bundle-analyzer';
const withBundleAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === 'true' });
/** @type {import('next').NextConfig} */
const baseConfig = {
output: 'standalone',
reactStrictMode: false,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "api.telegram.org",
},
{
protocol: "https",
hostname: "telegram.org",
},
{
protocol: "https",
hostname: "internal-api.inboxi.ng",
},
],
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'https://internal-api.inboxi.ng/api/:path*',
},
];
},
experimental: {
serverExternalPackages: [],
},
onDemandEntries: {
maxInactiveAge: 15 * 1000,
pagesBufferLength: 2,
},
productionBrowserSourceMaps: false,
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
};
const nextConfig = withBundleAnalyzer(baseConfig);
export default nextConfig;