Files
unicord/website/next.config.ts
T

18 lines
442 B
TypeScript
Raw Normal View History

2025-02-22 22:56:09 -06:00
import type { NextConfig } from "next";
2025-02-22 23:05:30 -06:00
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
2025-02-22 22:56:09 -06:00
const nextConfig: NextConfig = {
2025-02-22 23:05:30 -06:00
webpack: (config, { isServer }) => {
if (!isServer) {
config.plugins.push(
new MonacoWebpackPlugin({
languages: ['typescript', 'javascript'],
filename: 'static/[name].worker.js',
})
);
}
return config;
},
2025-02-22 22:56:09 -06:00
};
2025-02-22 23:05:30 -06:00
export default nextConfig;