mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
18 lines
442 B
TypeScript
18 lines
442 B
TypeScript
import type { NextConfig } from "next";
|
|
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
|
|
|
const nextConfig: NextConfig = {
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.plugins.push(
|
|
new MonacoWebpackPlugin({
|
|
languages: ['typescript', 'javascript'],
|
|
filename: 'static/[name].worker.js',
|
|
})
|
|
);
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig; |