Spaces:
Paused
Paused
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 | |
} | |