mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +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(
|
if (process.env.GITHUB_REPOSITORY === "AykutSarac/jsoncrack.com") {
|
||||||
config,
|
return withSentryConfig(
|
||||||
{
|
config,
|
||||||
silent: true,
|
{
|
||||||
org: "aykut-sarac",
|
silent: true,
|
||||||
project: "json-crack",
|
org: "aykut-sarac",
|
||||||
},
|
project: "json-crack",
|
||||||
{
|
},
|
||||||
widenClientFileUpload: true,
|
{
|
||||||
hideSourceMaps: true,
|
widenClientFileUpload: true,
|
||||||
disableLogger: true,
|
hideSourceMaps: true,
|
||||||
disableServerWebpackPlugin: 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