Files
cronmaster/next.config.mjs
2026-02-11 19:22:29 +00:00

40 lines
860 B
JavaScript

import { withSerwist } from "@serwist/turbopack";
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin("./app/i18n.ts");
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
images: {
unoptimized: true,
},
webpack: (config, { dev, isServer }) => {
config.resolve.alias = {
...config.resolve.alias,
"osx-temperature-sensor": false,
};
if (dev && !isServer) {
config.watchOptions = {
...config.watchOptions,
ignored: /node_modules/,
};
}
return config;
},
async headers() {
return [
{
source: "/manifest.json",
headers: [
{ key: "Content-Type", value: "application/manifest+json" },
],
},
];
},
};
export default withSerwist(withNextIntl(nextConfig));