forked from deezy-inc/deezy-place
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
65 lines (57 loc) · 1.63 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* eslint-disable */
const path = require("path");
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
// import { Wasm as WasmIntegration } from "@sentry/wasm";
const t = {
reactStrictMode: false,
sassOptions: {
includePaths: [path.join(__dirname, "./src/assets/scss")],
},
images: {
domains: [
"ordinals.com",
"d2v3k2do8kym1f.cloudfront.net",
"https://ordinals.com",
"https://explorer-signet.openordex.org",
],
unoptimized: true,
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// eslint-disable-next-line no-param-reassign
(config.experiments = {
asyncWebAssembly: true,
layers: true,
}),
(config.ignoreWarnings = [
{
message:
/(magic-sdk|@walletconnect\/web3-provider|@web3auth\/web3auth)/,
},
]);
return config;
},
env: {
IS_TESTNET: process.env.IS_TESTNET || false,
},
};
// Injected content via Sentry wizard below
const { withSentryConfig } = require("@sentry/nextjs");
const nextConfig = {
sentry: {
disableServerWebpackPlugin: true,
disableClientWebpackPlugin: true,
},
};
const sentryWebpackPluginOptions = {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
// Suppresses source map uploading logs during build
silent: true,
authToken: process.env.SENTRY_AUTH_TOKEN,
org: "deezy-io",
project: "deezy-place",
};
console.log("sentryWebpackPluginOptions.", sentryWebpackPluginOptions);
module.exports = withSentryConfig(t, sentryWebpackPluginOptions);