monacopilot / next.config.mjs
matthoffner's picture
Update next.config.mjs
d4ef6ab
raw
history blame contribute delete
489 Bytes
import { readFile } from 'node:fs/promises'
import { resolve } from 'node:path'
const themePath = resolve(process.cwd(), 'theme.json')
/** @type {import('next').NextConfig} */
export default {
experimental: {
appDir: true,
},
env: {
MONACO_THEME: await readFile(themePath, 'utf-8'),
},
webpack(config) {
config.module.rules.push({
test: /\.wasm$/,
type: 'asset/resource',
})
return config
},
output: "standalone",
reactStrictMode: true
}