fix: nextjs is slow dev server (#364)
* fix: nextjs slow compile time * fix: change optimized package imports and transpile packages * fix: format issue
This commit is contained in:
@@ -6,17 +6,6 @@ import "@homarr/auth/env.mjs";
|
||||
const config = {
|
||||
output: "standalone",
|
||||
reactStrictMode: true,
|
||||
/** Enables hot reloading for local packages without a build step */
|
||||
transpilePackages: [
|
||||
"@homarr/api",
|
||||
"@homarr/auth",
|
||||
"@homarr/db",
|
||||
"@homarr/ui",
|
||||
"@homarr/validation",
|
||||
"@homarr/form",
|
||||
"@homarr/notifications",
|
||||
"@homarr/spotlight",
|
||||
],
|
||||
/** We already do linting and typechecking as separate tasks in CI */
|
||||
eslint: { ignoreDuringBuilds: true },
|
||||
typescript: { ignoreBuildErrors: true },
|
||||
@@ -24,12 +13,16 @@ const config = {
|
||||
optimizePackageImports: [
|
||||
"@mantine/core",
|
||||
"@mantine/hooks",
|
||||
"@mantine/dates",
|
||||
"@mantine/notifications",
|
||||
"@mantine/form",
|
||||
"@mantine/spotlight",
|
||||
"@tabler/icons-react",
|
||||
],
|
||||
},
|
||||
transpilePackages: [
|
||||
"@homarr/ui",
|
||||
"@homarr/notifications",
|
||||
"@homarr/modals",
|
||||
"@homarr/spotlight",
|
||||
"@homarr/widgets",
|
||||
],
|
||||
images: {
|
||||
domains: ["cdn.jsdelivr.net"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user