fix: asset prefix

This commit is contained in:
AykutSarac 2023-08-07 23:39:20 +03:00
parent 94ab3c5ba9
commit 775b96454e
No known key found for this signature in database

View File

@ -13,13 +13,11 @@ const config = {
compiler: {
styledComponents: true,
},
assetPrefix: "js",
};
module.exports =
process.env.ANALYZE === "true"
? withBundleAnalyzer(config)
: withSentryConfig(
const bundleAnalyzerConfig = withBundleAnalyzer(config);
const sentryConfig = withSentryConfig(
config,
{
silent: true,
@ -32,4 +30,6 @@ module.exports =
disableLogger: true,
disableServerWebpackPlugin: true,
}
);
);
module.exports = process.env.ANALYZE === "true" ? bundleAnalyzerConfig : sentryConfig;