2
0
Files
bot/apps/viewer/next.config.js
Baptiste Arnaud bf0d0c2475 ⚗️ Implement chat API
2022-11-29 10:03:46 +01:00

28 lines
581 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 = {
reactStrictMode: true,
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
}
const sentryWebpackPluginOptions = {
silent: true,
}
module.exports = withTM(
process.env.SENTRY_AUTH_TOKEN
? withSentryConfig(nextConfig, sentryWebpackPluginOptions)
: nextConfig
)