21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
module.exports = {
|
|
reactStrictMode: true,
|
|
images: {
|
|
domains: ['avatars.githubusercontent.com']
|
|
},
|
|
webpack(config, { isServer }) {
|
|
config.resolve.alias['vscode'] = require.resolve(
|
|
'@codingame/monaco-languageclient/lib/vscode-compatibility'
|
|
)
|
|
if (!isServer) {
|
|
config.resolve.fallback.fs = false
|
|
}
|
|
config.module.rules.push({
|
|
test: [/\.md$/, /hook-bundle\.js$/],
|
|
use: 'raw-loader'
|
|
})
|
|
return config
|
|
}
|
|
}
|