mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
35 lines
768 B
JavaScript
35 lines
768 B
JavaScript
const { withSentryConfig } = require("@sentry/nextjs");
|
|
const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
enabled: process.env.ANALYZE === "true",
|
|
});
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const config = {
|
|
output: "export",
|
|
reactStrictMode: false,
|
|
productionBrowserSourceMaps: true,
|
|
compiler: {
|
|
styledComponents: true,
|
|
},
|
|
};
|
|
|
|
module.exports =
|
|
process.env.ANALYZE === "true"
|
|
? withBundleAnalyzer(config)
|
|
: withSentryConfig(
|
|
config,
|
|
{
|
|
silent: true,
|
|
org: "aykut-sarac",
|
|
project: "json-crack",
|
|
},
|
|
{
|
|
widenClientFileUpload: true,
|
|
hideSourceMaps: true,
|
|
disableLogger: true,
|
|
disableServerWebpackPlugin: true,
|
|
}
|
|
);
|