2022-08-29 05:01:51 +00:00
|
|
|
const { withSentryConfig } = require('@sentry/nextjs');
|
|
|
|
|
2022-01-14 04:24:18 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
2022-02-27 06:17:52 +00:00
|
|
|
webpack: (config) => {
|
|
|
|
const experiments = config.experiments || {};
|
|
|
|
config.experiments = {...experiments, asyncWebAssembly: true};
|
|
|
|
return config
|
|
|
|
},
|
2022-01-14 04:24:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-29 05:01:51 +00:00
|
|
|
const sentryWebpackPluginOptions = {
|
|
|
|
// Additional config options for the Sentry Webpack plugin. Keep in mind that
|
|
|
|
// the following options are set automatically, and overriding them is not
|
|
|
|
// recommended:
|
|
|
|
// release, url, org, project, authToken, configFile, stripPrefix,
|
|
|
|
// urlPrefix, include, ignore
|
|
|
|
|
|
|
|
// For all available options, see:
|
|
|
|
// https://github.com/getsentry/sentry-webpack-plugin#options.
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);
|