forked from tdjsnelling/sqtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
31 lines (28 loc) · 711 Bytes
/
Copy pathnext.config.js
File metadata and controls
31 lines (28 loc) · 711 Bytes
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
const { withSentryConfig } = require("@sentry/nextjs");
const config = require("../config");
const { version } = require("./package.json");
const nextConfig = {
reactStrictMode: true,
poweredByHeader: false,
compiler: {
styledComponents: true,
},
publicRuntimeConfig: {
...config.envs,
SQ_VERSION: version,
},
serverRuntimeConfig: {
...config.envs,
...config.secrets,
},
sentry: {
hideSourceMaps: true,
},
};
const sentryWebpackPluginOptions = {
silent: true,
errorHandler: (err, invokeErr, compilation) => {
compilation.warnings.push("Sentry CLI Plugin: " + err.message);
},
};
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);