2
0
Files
bot/apps/builder/next.config.js
2022-12-20 10:48:10 +01:00

34 lines
679 B
JavaScript

const { withSentryConfig } = require('@sentry/nextjs')
const path = require('path')
const withTM = require('next-transpile-modules')([
'utils',
'models',
'emails',
'bot-engine',
])
/** @type {import('next').NextConfig} */
const nextConfig = withTM({
reactStrictMode: true,
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
})
const sentryWebpackPluginOptions = {
silent: true,
}
module.exports = process.env.NEXT_PUBLIC_SENTRY_DSN
? withSentryConfig(
{
...nextConfig,
sentry: {
hideSourceMaps: true,
},
},
sentryWebpackPluginOptions
)
: nextConfig