Spaces:
Paused
Paused
File size: 489 Bytes
d9bc819 d4ef6ab d9bc819 |
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 |
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
}
|