2023-12-08 22:35:15 +01:00
|
|
|
// Importing env files here to validate on build
|
|
|
|
|
import "./src/env.mjs";
|
2024-01-02 14:18:37 +01:00
|
|
|
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 */
|
2023-12-10 17:12:20 +01:00
|
|
|
transpilePackages: [
|
2024-01-02 14:18:37 +01:00
|
|
|
"@homarr/api",
|
|
|
|
|
"@homarr/auth",
|
|
|
|
|
"@homarr/db",
|
|
|
|
|
"@homarr/ui",
|
|
|
|
|
"@homarr/validation",
|
|
|
|
|
"@homarr/form",
|
|
|
|
|
"@homarr/notifications",
|
|
|
|
|
"@homarr/spotlight",
|
2023-12-10 17:12:20 +01:00
|
|
|
],
|
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 },
|
2023-12-09 00:32:45 +01:00
|
|
|
experimental: {
|
2024-01-02 14:18:37 +01:00
|
|
|
optimizePackageImports: [
|
|
|
|
|
"@mantine/core",
|
|
|
|
|
"@mantine/hooks",
|
|
|
|
|
"@mantine/dates",
|
|
|
|
|
"@mantine/notifications",
|
|
|
|
|
"@mantine/form",
|
|
|
|
|
"@mantine/spotlight",
|
|
|
|
|
],
|
2023-12-09 00:32:45 +01:00
|
|
|
},
|
2024-01-02 17:12:26 +01:00
|
|
|
images: {
|
|
|
|
|
domains: ["cdn.jsdelivr.net"],
|
|
|
|
|
},
|
2023-12-08 22:35:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|