Files
ReadMeABook/next.config.ts
T
kikootwo 23881eb670 Add indexer flag bonuses and SSL verify toggle
Implements configurable indexer flag bonuses/penalties for torrent ranking, including UI for admin settings and support in ranking-algorithm. Adds an option to disable SSL certificate verification for qBittorrent connections (for self-signed certs), with UI in both setup and admin settings, and persists the setting. Updates documentation, API routes, and ranking logic to support these features. Also includes minor UI improvements and bug fixes.
2026-01-28 11:41:58 -05:00

47 lines
1.2 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Enable standalone output for Docker deployment
output: 'standalone',
// Optimize for production
reactStrictMode: true,
// Externalize packages that should only run on the server
// Bull uses child processes and is incompatible with client bundling
serverExternalPackages: ['bull'],
// Turbopack configuration (silence migration warning)
turbopack: {},
// Webpack configuration for when not using Turbopack
webpack: (config, { isServer }) => {
if (!isServer) {
// Don't bundle Bull on the client side - it's server-only
config.resolve.alias = {
...config.resolve.alias,
'bull': false,
};
}
return config;
},
// Image optimization - DISABLED because we handle our own thumbnail caching
// in /app/cache/thumbnails/ via the Audible refresh job
images: {
unoptimized: true, // Disable Next.js image optimization
remotePatterns: [
{
protocol: 'https',
hostname: 'm.media-amazon.com', // Audible cover images
},
{
protocol: 'https',
hostname: 'images-na.ssl-images-amazon.com', // Audible cover images
},
],
},
};
export default nextConfig;