Commit cbaa1dec authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #2847 from blockscout/release/v2.2.0

Fixes for release v2.2.0
parents 0280f807 376627fd
...@@ -59,7 +59,7 @@ module.exports = { ...@@ -59,7 +59,7 @@ module.exports = {
{ {
userAgent: '*', userAgent: '*',
allow: '/', allow: '/',
disallow: ['/auth/*', '/login', '/chakra', '/sprite', '/account/*'], disallow: ['/auth/*', '/login', '/chakra', '/sprite', '/account/*', '/csv-export'],
}, },
], ],
}, },
...@@ -71,6 +71,7 @@ module.exports = { ...@@ -71,6 +71,7 @@ module.exports = {
'/login', '/login',
'/sprite', '/sprite',
'/chakra', '/chakra',
'/csv-export',
], ],
transform: async(config, path) => { transform: async(config, path) => {
switch (path) { switch (path) {
......
...@@ -11,6 +11,8 @@ import isNeedProxy from 'lib/api/isNeedProxy'; ...@@ -11,6 +11,8 @@ import isNeedProxy from 'lib/api/isNeedProxy';
import * as cookies from 'lib/cookies'; import * as cookies from 'lib/cookies';
import type * as metadata from 'lib/metadata'; import type * as metadata from 'lib/metadata';
import detectBotRequest from './utils/detectBotRequest';
const rollupFeature = config.features.rollup; const rollupFeature = config.features.rollup;
const adBannerFeature = config.features.adsBanner; const adBannerFeature = config.features.adsBanner;
...@@ -47,8 +49,9 @@ Promise<GetServerSidePropsResult<Props<Pathname>>> => { ...@@ -47,8 +49,9 @@ Promise<GetServerSidePropsResult<Props<Pathname>>> => {
} }
const isTrackingDisabled = process.env.DISABLE_TRACKING === 'true'; const isTrackingDisabled = process.env.DISABLE_TRACKING === 'true';
const isBot = Boolean(detectBotRequest(req));
if (!isTrackingDisabled) { if (!isTrackingDisabled && !isBot) {
// log pageview // log pageview
const hostname = req.headers.host; const hostname = req.headers.host;
const timestamp = new Date().toISOString(); const timestamp = new Date().toISOString();
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"es-toolkit": "1.31.0", "es-toolkit": "1.31.0",
"focus-visible": "^5.2.0", "focus-visible": "^5.2.0",
"gradient-avatar": "git+https://github.com/blockscout/gradient-avatar.git", "gradient-avatar": "git+https://github.com/blockscout/gradient-avatar.git",
"graphiql": "^2.2.0", "graphiql": "^4.1.2",
"graphql": "^16.8.1", "graphql": "^16.8.1",
"graphql-ws": "^5.11.3", "graphql-ws": "^5.11.3",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
......
...@@ -311,7 +311,7 @@ const AddressDetails = ({ addressQuery, countersQuery, isLoading }: Props) => { ...@@ -311,7 +311,7 @@ const AddressDetails = ({ addressQuery, countersQuery, isLoading }: Props) => {
<> <>
<DetailedInfo.ItemLabel <DetailedInfo.ItemLabel
hint="Metrics provided by third party partners" hint="Metrics provided by third party partners"
isLoading={ address3rdPartyWidgets.configQuery.isPlaceholderData } isLoading={ address3rdPartyWidgets.configQuery.isPlaceholderData || addressQuery.isPlaceholderData }
> >
Widgets Widgets
</DetailedInfo.ItemLabel> </DetailedInfo.ItemLabel>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment