2
0
Files
bot/apps/viewer/next.config.js
Baptiste Arnaud ee338f62dc build: add pnpm
2022-08-10 18:49:06 +02:00

21 lines
516 B
JavaScript

/* eslint-disable @typescript-eslint/no-var-requires */
const { withSentryConfig } = require('@sentry/nextjs')
const path = require('path')
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
}
const sentryWebpackPluginOptions = {
silent: true,
}
module.exports = process.env.SENTRY_AUTH_TOKEN
? withSentryConfig(nextConfig, sentryWebpackPluginOptions)
: nextConfig