-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
32 lines (29 loc) · 925 Bytes
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import MonacoWebpackPlugin from "monaco-editor-webpack-plugin";
import createNextIntlPlugin from "next-intl/plugin";
const withNextIntl = createNextIntlPlugin();
/** @type {import("next").NextConfig} */
const nextConfig = {
output: "standalone",
poweredByHeader: false,
webpack(config, {isServer}) {
if (!isServer) {
config.plugins.push(
new MonacoWebpackPlugin({
languages: [
"json",
"markdown",
"css",
"typescript",
"javascript",
"html",
"scss",
"less",
],
filename: "static/chunks/[name].worker.js",
}),
);
}
return config;
},
};
export default withNextIntl(nextConfig);