use env for app name

This commit is contained in:
David Lechner
2021-02-01 13:02:06 -06:00
parent 42869a7938
commit a8b3f5dcf7
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -1 +1,2 @@
REACT_APP_NAME="Pybricks Code"
REACT_APP_VERSION=$npm_package_version
+1 -1
View File
@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Pybricks Code</title>
<title>%REACT_APP_NAME%</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
+1 -1
View File
@@ -7,7 +7,7 @@
export const tooltipDelay = 1000;
/** Official name of the app. */
export const appName = 'Pybricks Code';
export const appName = process.env.REACT_APP_NAME || 'REACT_APP_NAME is undefined';
/** URL to main Pybricks website. */
export const pybricksWebsiteUrl = 'https://pybricks.com';