Files
Homarr/next.config.js
Thomas Camlong 3b4b9329db update nextjs
2026-02-25 19:50:10 +01:00

29 lines
695 B
JavaScript

require('./src/env');
const { i18n } = require('./next-i18next.config');
module.exports = {
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: '/board',
permanent: false,
},
],
env: {
NEXTAUTH_URL_INTERNAL: process.env.NEXTAUTH_URL_INTERNAL || process.env.HOSTNAME || 'http://localhost:3000'
},
};