mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-27 19:57:11 +00:00
use env for app name
This commit is contained in:
@@ -1 +1,2 @@
|
||||
REACT_APP_NAME="Pybricks Code"
|
||||
REACT_APP_VERSION=$npm_package_version
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user