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 = {
{
userAgent: '*',
allow: '/',
disallow: ['/auth/*', '/login', '/chakra', '/sprite', '/account/*'],
disallow: ['/auth/*', '/login', '/chakra', '/sprite', '/account/*', '/csv-export'],
},
],
},
......@@ -71,6 +71,7 @@ module.exports = {
'/login',
'/sprite',
'/chakra',
'/csv-export',
],
transform: async(config, path) => {
switch (path) {
......
......@@ -11,6 +11,8 @@ import isNeedProxy from 'lib/api/isNeedProxy';
import * as cookies from 'lib/cookies';
import type * as metadata from 'lib/metadata';
import detectBotRequest from './utils/detectBotRequest';
const rollupFeature = config.features.rollup;
const adBannerFeature = config.features.adsBanner;
......@@ -47,8 +49,9 @@ Promise<GetServerSidePropsResult<Props<Pathname>>> => {
}
const isTrackingDisabled = process.env.DISABLE_TRACKING === 'true';
const isBot = Boolean(detectBotRequest(req));
if (!isTrackingDisabled) {
if (!isTrackingDisabled && !isBot) {
// log pageview
const hostname = req.headers.host;
const timestamp = new Date().toISOString();
......
......@@ -89,7 +89,7 @@
"es-toolkit": "1.31.0",
"focus-visible": "^5.2.0",
"gradient-avatar": "git+https://github.com/blockscout/gradient-avatar.git",
"graphiql": "^2.2.0",
"graphiql": "^4.1.2",
"graphql": "^16.8.1",
"graphql-ws": "^5.11.3",
"js-cookie": "^3.0.1",
......
......@@ -311,7 +311,7 @@ const AddressDetails = ({ addressQuery, countersQuery, isLoading }: Props) => {
<>
<DetailedInfo.ItemLabel
hint="Metrics provided by third party partners"
isLoading={ address3rdPartyWidgets.configQuery.isPlaceholderData }
isLoading={ address3rdPartyWidgets.configQuery.isPlaceholderData || addressQuery.isPlaceholderData }
>
Widgets
</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