- Remove ignoreDuringBuilds from eslintConfig in package.json (invalid) - Add eslint.ignoreDuringBuilds to next.config.js (correct location) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
35 lines
833 B
JavaScript
35 lines
833 B
JavaScript
require('./src/env');
|
|
const { i18n } = require('./next-i18next.config');
|
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
});
|
|
|
|
module.exports = withBundleAnalyzer({
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
webpack: (config) => {
|
|
// for dynamic loading of auth providers
|
|
config.experiments = { ...config.experiments, topLevelAwait: true };
|
|
return config;
|
|
},
|
|
images: {
|
|
domains: ['cdn.jsdelivr.net'],
|
|
},
|
|
reactStrictMode: true,
|
|
output: 'standalone',
|
|
i18n,
|
|
transpilePackages: ['@jellyfin/sdk'],
|
|
redirects: async () => [
|
|
{
|
|
source: '/',
|
|
destination: '/unraid',
|
|
permanent: false,
|
|
},
|
|
],
|
|
env: {
|
|
NEXTAUTH_URL_INTERNAL: process.env.NEXTAUTH_URL_INTERNAL || process.env.HOSTNAME || 'http://localhost:3000'
|
|
},
|
|
});
|