Commit c44a995a authored by Cheng Wei's avatar Cheng Wei Committed by GitHub

use `=== 'false' ? false : true` to keep compatibility

Co-authored-by: default avatartom goriunov <tom@ohhhh.me>
parent b9984aa0
...@@ -4,7 +4,7 @@ import { getEnvValue, getExternalAssetFilePath } from './utils'; ...@@ -4,7 +4,7 @@ import { getEnvValue, getExternalAssetFilePath } from './utils';
const defaultImageUrl = '/static/og_placeholder.png'; const defaultImageUrl = '/static/og_placeholder.png';
const meta = Object.freeze({ const meta = Object.freeze({
promoteBlockscoutInTitle: getEnvValue('NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE') === 'true', promoteBlockscoutInTitle: getEnvValue('NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE') === 'false' ? false : true,
og: { og: {
description: getEnvValue('NEXT_PUBLIC_OG_DESCRIPTION') || '', description: getEnvValue('NEXT_PUBLIC_OG_DESCRIPTION') || '',
imageUrl: app.baseUrl + (getExternalAssetFilePath('NEXT_PUBLIC_OG_IMAGE_URL') || defaultImageUrl), imageUrl: app.baseUrl + (getExternalAssetFilePath('NEXT_PUBLIC_OG_IMAGE_URL') || defaultImageUrl),
......
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