Fix prod url & more settings

This commit is contained in:
Sacha Weatherstone committed 2021-11-12 01:06:43 +11:00
1 parent c2f3478967
commit d87782d33a
7 files changed
+44 -18

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ export const Files = ({ navOpen, setNavOpen }: RangeTestProps): JSX.Element => {
const connectionURL = hostOverrideEnabled
? hostOverride
: import.meta.env.NODE_ENV === 'production'
: import.meta.env.PROD
? window.location.hostname
: (import.meta.env.VITE_PUBLIC_DEVICE_IP as string) ??
'http://meshtastic.local';