mirror of
https://github.com/fccview/cronmaster.git
synced 2026-02-12 06:51:47 -05:00
40 lines
860 B
JavaScript
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));
|