Fix Vite issues (#2038)

* Fix environment vars in Vite
* Add types, remove process.env override
* Temporarily Remove Statigz / gzip
* Update ui/v2.5/src/core/createClient.ts

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Update ui/v2.5/src/serviceWorker.ts

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Ignore case rules in types
* Add windows js workaround

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
kermieisinthehouse
2021-11-18 00:38:19 -08:00
committed by GitHub
parent 0687cd2ef0
commit 8d94392cfb
7 changed files with 41 additions and 22 deletions

View File

@@ -5,9 +5,9 @@ import { LoadingIndicator } from "src/components/Shared";
import { useLatestVersion } from "src/core/StashService";
export const SettingsAboutPanel: React.FC = () => {
const gitHash = process.env.VITE_APP_GITHASH;
const stashVersion = process.env.VITE_APP_STASH_VERSION;
const buildTime = process.env.VITE_APP_DATE;
const gitHash = import.meta.env.VITE_APP_GITHASH;
const stashVersion = import.meta.env.VITE_APP_STASH_VERSION;
const buildTime = import.meta.env.VITE_APP_DATE;
const intl = useIntl();