Skip to content

Commit

Permalink
ui: max asset size increased
Browse files Browse the repository at this point in the history
	history.push replaced by history.replace in the HealthItem component
	useless comment removed in HealthItem component
  • Loading branch information
Julien MEZIERE committed Sep 15, 2021
1 parent 6adc0d1 commit 7a3b72f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ui/src/components/HealthItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ const HealthItem = ({
// Right placement to avoid Z index issues between left sidebar and tooltip or out of screen tooltip displays
placement="top"
overlayStyle={{
// em sizing to handle font-size change on large screens
width: '20rem',
height: '100%',
}}
Expand All @@ -145,8 +144,8 @@ const HealthItem = ({
>
<div
onClick={() => {
history.push('/alerts');
openLink(alertView);
history.replace('/alerts');
}}
data-testid="alert-link"
>
Expand Down
2 changes: 1 addition & 1 deletion ui/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (env) => ({
hints: 'error',
// ~732 KiB for production
// ~4.06 MiB for development because flow increase the size of assets.
maxAssetSize: process.env.NODE_ENV === 'production' ? 750000 : 5000000,
maxAssetSize: process.env.NODE_ENV === 'production' ? 750000 : 100000000,
assetFilter: (assetFilename) => {
return (
!assetFilename.endsWith('.map.gz') && assetFilename.endsWith('.gz')
Expand Down

0 comments on commit 7a3b72f

Please sign in to comment.