2023-07-23 14:18:10 +02:00
|
|
|
require('./src/env');
|
2023-06-09 22:47:54 +02:00
|
|
|
const { i18n } = require('./next-i18next.config');
|
|
|
|
|
|
|
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
|
|
|
enabled: process.env.ANALYZE === 'true',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.exports = withBundleAnalyzer({
|
2024-02-09 22:57:00 +01:00
|
|
|
webpack: (config) => {
|
|
|
|
|
// for dynamic loading of auth providers
|
|
|
|
|
config.experiments = { ...config.experiments, topLevelAwait: true };
|
|
|
|
|
return config;
|
|
|
|
|
},
|
2023-06-09 22:47:54 +02:00
|
|
|
images: {
|
|
|
|
|
domains: ['cdn.jsdelivr.net'],
|
|
|
|
|
},
|
|
|
|
|
reactStrictMode: true,
|
|
|
|
|
output: 'standalone',
|
|
|
|
|
i18n,
|
|
|
|
|
transpilePackages: ['@jellyfin/sdk'],
|
2023-07-31 23:12:45 +02:00
|
|
|
redirects: async () => [
|
|
|
|
|
{
|
|
|
|
|
source: '/',
|
|
|
|
|
destination: '/board',
|
|
|
|
|
permanent: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-08-05 12:10:34 +02:00
|
|
|
env: {
|
|
|
|
|
NEXTAUTH_URL_INTERNAL: process.env.NEXTAUTH_URL_INTERNAL || process.env.HOSTNAME || 'http://localhost:3000'
|
|
|
|
|
},
|
2023-06-09 22:47:54 +02:00
|
|
|
});
|