v2
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
const path = require('path');
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
distDir: process.env.NEXT_DIST_DIR || '.next',
|
||||
output: process.env.NEXT_OUTPUT_MODE,
|
||||
outputFileTracingRoot: path.join(__dirname, '../'),
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: false,
|
||||
},
|
||||
images: {
|
||||
unoptimized: true,
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'media.api-sports.io',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'media-1.api-sports.io',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'media-2.api-sports.io',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'media-3.api-sports.io',
|
||||
},
|
||||
],
|
||||
},
|
||||
// Compression and performance
|
||||
compress: true,
|
||||
poweredByHeader: false,
|
||||
// Faster page loads via HTTP keep-alive
|
||||
httpAgentOptions: {
|
||||
keepAlive: true,
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user