-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
41 lines (38 loc) · 973 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/** @type {import('next').NextConfig} */
const removeImports = require('next-remove-imports')();
const { withSentryConfig } = require('@sentry/nextjs');
const nextConfig = removeImports({
transpilePackages: ['@mdxeditor/editor', 'react-diff-view'],
swcMinify: true,
images: {
domains: [
'lh3.googleusercontent.com',
'api.dicebear.com',
'storage.googleapis.com',
],
},
experimental: {
swcPlugins: [['@swc-jotai/react-refresh', {}]],
},
webpack: (config) => {
config.experiments = { ...config.experiments, topLevelAwait: true };
return config;
},
});
const sentryConfig = withSentryConfig(
nextConfig,
{
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: true,
org: 'thibaud-brault',
project: 'faqmaker',
},
{
widenClientFileUpload: true,
transpileClientSDK: true,
tunnelRoute: '/monitoring',
hideSourceMaps: true,
disableLogger: true,
},
);
module.exports = sentryConfig;