Files
Homarr/apps/nextjs/next.config.mjs

38 lines
910 B
JavaScript
Raw Normal View History

2023-12-08 22:35:15 +01:00
// Importing env files here to validate on build
import "./src/env.mjs";
import "@homarr/auth/env.mjs";
2023-12-08 22:35:15 +01:00
/** @type {import("next").NextConfig} */
const config = {
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",
],
2023-12-08 22:35:15 +01:00
/** We already do linting and typechecking as separate tasks in CI */
eslint: { ignoreDuringBuilds: true },
typescript: { ignoreBuildErrors: true },
experimental: {
optimizePackageImports: [
"@mantine/core",
"@mantine/hooks",
"@mantine/dates",
"@mantine/notifications",
"@mantine/form",
"@mantine/spotlight",
],
},
images: {
domains: ["cdn.jsdelivr.net"],
},
2023-12-08 22:35:15 +01:00
};
export default config;