mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-15 17:56:21 +01:00
🚑 ES module dependencies
This commit is contained in:
@@ -31,6 +31,7 @@ module.exports = {
|
|||||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||||
'no-continue': 'off',
|
'no-continue': 'off',
|
||||||
'linebreak-style': 0,
|
'linebreak-style': 0,
|
||||||
|
'import/extensions': 'off',
|
||||||
'vitest/max-nested-describe': [
|
'vitest/max-nested-describe': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
const { i18n } = require('./next-i18next.config');
|
|
||||||
|
|
||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
||||||
enabled: process.env.ANALYZE === 'true',
|
|
||||||
});
|
|
||||||
|
|
||||||
module.exports = withBundleAnalyzer({
|
|
||||||
images: {
|
|
||||||
domains: ['cdn.jsdelivr.net'],
|
|
||||||
},
|
|
||||||
reactStrictMode: true,
|
|
||||||
output: 'standalone',
|
|
||||||
i18n,
|
|
||||||
});
|
|
||||||
17
next.config.mjs
Normal file
17
next.config.mjs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
const { i18n } = await import('./next-i18next.config.js');
|
||||||
|
|
||||||
|
const { default: configreBundleAnalyser } = await import('@next/bundle-analyzer');
|
||||||
|
|
||||||
|
const withBundleAnalyzer = configreBundleAnalyser({
|
||||||
|
enabled: process.env.ANALYZE === 'true',
|
||||||
|
});
|
||||||
|
|
||||||
|
export default withBundleAnalyzer({
|
||||||
|
images: {
|
||||||
|
domains: ['cdn.jsdelivr.net'],
|
||||||
|
},
|
||||||
|
reactStrictMode: true,
|
||||||
|
output: 'standalone',
|
||||||
|
i18n,
|
||||||
|
transpilePackages: ['@jellyfin/sdk'],
|
||||||
|
});
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
"next.config.js",
|
"next.config.mjs",
|
||||||
".next/types/**/*.ts"
|
".next/types/**/*.ts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
|||||||
Reference in New Issue
Block a user