mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
feat: update next config for better local hosting
This commit is contained in:
parent
d369af67d4
commit
a046ef4a16
@ -29,21 +29,27 @@ const config = {
|
||||
},
|
||||
};
|
||||
|
||||
const bundleAnalyzerConfig = withBundleAnalyzer(config);
|
||||
const configExport = () => {
|
||||
if (process.env.ANALYZE === "true") return withBundleAnalyzer(config);
|
||||
|
||||
const sentryConfig = withSentryConfig(
|
||||
config,
|
||||
{
|
||||
silent: true,
|
||||
org: "aykut-sarac",
|
||||
project: "json-crack",
|
||||
},
|
||||
{
|
||||
widenClientFileUpload: true,
|
||||
hideSourceMaps: true,
|
||||
disableLogger: true,
|
||||
disableServerWebpackPlugin: true,
|
||||
if (process.env.GITHUB_REPOSITORY === "AykutSarac/jsoncrack.com") {
|
||||
return withSentryConfig(
|
||||
config,
|
||||
{
|
||||
silent: true,
|
||||
org: "aykut-sarac",
|
||||
project: "json-crack",
|
||||
},
|
||||
{
|
||||
widenClientFileUpload: true,
|
||||
hideSourceMaps: true,
|
||||
disableLogger: true,
|
||||
disableServerWebpackPlugin: true,
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = process.env.ANALYZE === "true" ? bundleAnalyzerConfig : sentryConfig;
|
||||
return config;
|
||||
};
|
||||
|
||||
module.exports = configExport();
|
||||
|
Loading…
x
Reference in New Issue
Block a user