Skip to content

Fixes for release v2.2.0 #2847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deploy/tools/sitemap-generator/next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = {
{
userAgent: '*',
allow: '/',
disallow: ['/auth/*', '/login', '/chakra', '/sprite', '/account/*'],
disallow: ['/auth/*', '/login', '/chakra', '/sprite', '/account/*', '/csv-export'],
},
],
},
Expand All @@ -71,6 +71,7 @@ module.exports = {
'/login',
'/sprite',
'/chakra',
'/csv-export',
],
transform: async(config, path) => {
switch (path) {
Expand Down
5 changes: 4 additions & 1 deletion nextjs/getServerSideProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion ui/address/AddressDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Loading
Loading