2
0
Files
bot/apps/viewer/next.config.js
Baptiste Arnaud 76a8064e7c 💚 Fix docs build failing
2023-03-15 15:04:53 +01:00

35 lines
779 B
JavaScript

const { withSentryConfig } = require('@sentry/nextjs')
const path = require('path')
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: [
'@typebot.io/lib',
'@typebot.io/schemas',
'@typebot.io/emails',
],
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
}
const sentryWebpackPluginOptions = {
silent: true,
release: process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA + '-viewer',
}
module.exports = process.env.NEXT_PUBLIC_SENTRY_DSN
? withSentryConfig(
{
...nextConfig,
sentry: {
hideSourceMaps: true,
widenClientFileUpload: true,
},
},
sentryWebpackPluginOptions
)
: nextConfig