Skip to content

Commit

Permalink
Add _META_ to the name of some .env entries
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 14, 2024
1 parent 46d0d94 commit f9d12cb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ REACT_APP_BUILD_VERSION=
# REACT_APP_TESTNET_API=https://testnet.nexus.stg.oasis.io/v1/
REACT_APP_API=https://nexus.oasis.io/v1/
REACT_APP_TESTNET_API=https://testnet.nexus.oasis.io/v1/
REACT_APP_TITLE=Oasis Explorer
REACT_APP_IMAGE=oasis-og-image.jpg
REACT_APP_MANIFEST=app.webmanifest
REACT_APP_FAVICON=favicon.ico
REACT_APP_DESC=Official explorer for the Oasis Network.
REACT_APP_META_TITLE=Oasis Explorer
REACT_APP_META_IMAGE=oasis-og-image.jpg
REACT_APP_META_MANIFEST=app.webmanifest
REACT_APP_META_FAVICON=favicon.ico
REACT_APP_META_DESC=Official explorer for the Oasis Network.
REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity
REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol
REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord
Expand Down
10 changes: 5 additions & 5 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
REACT_APP_BUILD_DATETIME=
REACT_APP_BUILD_SHA=
REACT_APP_BUILD_VERSION=
REACT_APP_TITLE=Oasis Explorer
REACT_APP_IMAGE=oasis-og-image.jpg
REACT_APP_MANIFEST=app.webmanifest
REACT_APP_FAVICON=favicon.ico
REACT_APP_DESC=Official explorer for the Oasis Network.
REACT_APP_META_TITLE=Oasis Explorer
REACT_APP_META_IMAGE=oasis-og-image.jpg
REACT_APP_META_MANIFEST=app.webmanifest
REACT_APP_META_FAVICON=favicon.ico
REACT_APP_META_DESC=Official explorer for the Oasis Network.
REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity
REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol
REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord
Expand Down
14 changes: 7 additions & 7 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<head>
<meta charset="utf-8" />
<base href="/" />
<link rel="icon" href="$REACT_APP_FAVICON" />
<link rel="icon" href="$REACT_APP_META_FAVICON" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="$REACT_APP_MANIFEST" />
<meta property="og:title" content="$REACT_APP_TITLE" />
<meta property="og:description" content="$REACT_APP_DESC" />
<meta property="og:image" content="$REACT_APP_IMAGE" />
<link rel="manifest" href="$REACT_APP_META_MANIFEST" />
<meta property="og:title" content="$REACT_APP_META_TITLE" />
<meta property="og:description" content="$REACT_APP_META_DESC" />
<meta property="og:image" content="$REACT_APP_META_IMAGE" />
<meta property="og:type" content="website" />
<title>$REACT_APP_TITLE</title>
<meta name="description" content="$REACT_APP_DESC" />
<title>$REACT_APP_META_TITLE</title>
<meta name="description" content="$REACT_APP_META_DESC" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,4 @@ export const deploys = {
const stableDeploys = [...deploys.production, deploys.staging]
export const isStableDeploy = stableDeploys.some(url => window.location.origin === url)

export const getAppTitle = () => process.env.REACT_APP_TITLE
export const getAppTitle = () => process.env.REACT_APP_META_TITLE
10 changes: 5 additions & 5 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ declare global {
REACT_APP_API: string
REACT_APP_TESTNET_API: string
REACT_APP_SHOW_BUILD_BANNERS?: 'true' | 'false'
REACT_APP_TITLE: string
REACT_APP_IMAGE: string
REACT_APP_MANIFEST: string
REACT_APP_FAVICON: string
REACT_APP_DESC: string
REACT_APP_META_TITLE: string
REACT_APP_META_IMAGE: string
REACT_APP_META_MANIFEST: string
REACT_APP_META_FAVICON: string
REACT_APP_META_DESC: string
REACT_APP_SOCIAL_TELEGRAM?: string
REACT_APP_SOCIAL_TWITTER?: string
REACT_APP_SOCIAL_DISCORD?: string
Expand Down

0 comments on commit f9d12cb

Please sign in to comment.