2
0
Files
bot/apps/builder/next.config.js

34 lines
679 B
JavaScript
Raw Normal View History

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