-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
40 lines (35 loc) · 1.1 KB
/
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
/**
* @type {import('next').NextConfig}
* @see https://nextjs.org/docs/pages/api-reference/next-config-js
*/
let nextConfig = {
reactStrictMode: true,
redirects: async () => [],
rewrites: async () => [],
swcMinify: true,
};
/** @see https://docs.sentry.io/platforms/javascript/guides/nextjs */
const { withSentryConfig } = require("@sentry/nextjs");
/**
* @type {Partial<import('@sentry/nextjs').SentryWebpackPluginOptions>}
* @see https://github.com/getsentry/sentry-webpack-plugin#options
*/
const sentryWebpackConfig = {
org: "skip-protocol",
project: "dydx-dashboard",
silent: true,
};
/**
* @type {import('@sentry/nextjs/types/config/types').UserSentryOptions}
* @see https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup
*/
const sentryOptions = {
disableLogger: true,
hideSourceMaps: false,
transpileClientSDK: true,
tunnelRoute: "/monitoring",
widenClientFileUpload: true,
};
/** @see https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup */
nextConfig = withSentryConfig(nextConfig, sentryWebpackConfig, sentryOptions);
module.exports = nextConfig;