modmapper-web/next.config.js

24 lines
810 B
JavaScript
Raw Normal View History

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
}
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);