Skip to content

Commit

Permalink
Remove robots meta tag and add NEXT_PUBLIC_SITE_URL environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
IuriPons committed Aug 30, 2023
1 parent 297b291 commit 8e27423
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/client/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ NEXT_PUBLIC_GOOGLE_ANALYTICS=
NEXT_PUBLIC_TAG_MANAGER=
NEXT_PUBLIC_NETWORK_GENESIS=
NEXT_PUBLIC_ASSET_PREFIX=
NEXT_PUBLIC_NETWORK_URL=
NEXT_PUBLIC_SITE_URL=
2 changes: 1 addition & 1 deletion packages/client/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const siteUrl = 'https://www.ethseer.io';
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL;

module.exports = {
siteUrl,
Expand Down
1 change: 0 additions & 1 deletion packages/client/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export default function Document() {
/>
<meta property='og:image' content='http://ethseer.com/static/images/ethseer_metadata.png' />
<meta httpEquiv='Content-Security-Policy' content='upgrade-insecure-requests' />
<meta name='robots' content='noindex' />
<link href={`${assetPrefix}/static/css/theme-mode-switch.css`} rel='stylesheet' />
</Head>

Expand Down
2 changes: 1 addition & 1 deletion packages/client/pages/server-sitemap.xml/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getServerSideSitemapLegacy, ISitemapField } from 'next-sitemap';

// Constants
const limit = 10000;
const webUrl = `https://ethseer.io${process.env.NEXT_PUBLIC_ASSET_PREFIX ?? ''}`;
const webUrl = process.env.NEXT_PUBLIC_SITE_URL;
const apiUrl = process.env.NEXT_PUBLIC_URL_API;

import { POOLS_EXTENDED } from '../../constants';
Expand Down

0 comments on commit 8e27423

Please sign in to comment.