2022-08-08 08:21:36 +02:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
2022-02-15 08:43:11 +01:00
|
|
|
const { withSentryConfig } = require('@sentry/nextjs')
|
2022-08-08 08:21:36 +02:00
|
|
|
const path = require('path')
|
2022-10-01 07:00:05 +02:00
|
|
|
const withTM = require('next-transpile-modules')(['utils', 'models', 'emails'])
|
2022-02-15 08:43:11 +01:00
|
|
|
|
2022-08-08 08:21:36 +02:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
output: 'standalone',
|
2022-03-12 07:53:37 +01:00
|
|
|
experimental: {
|
2022-08-08 08:21:36 +02:00
|
|
|
outputFileTracingRoot: path.join(__dirname, '../../'),
|
2022-03-12 07:53:37 +01:00
|
|
|
},
|
2022-02-15 08:43:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
const sentryWebpackPluginOptions = {
|
2022-08-08 08:21:36 +02:00
|
|
|
silent: true,
|
2022-02-15 08:43:11 +01:00
|
|
|
}
|
|
|
|
|
2022-09-18 09:46:42 +02:00
|
|
|
module.exports = withTM(
|
|
|
|
process.env.SENTRY_AUTH_TOKEN
|
|
|
|
? withSentryConfig(nextConfig, sentryWebpackPluginOptions)
|
|
|
|
: nextConfig
|
|
|
|
)
|