Fix prod url & more settings

This commit is contained in:
Sacha Weatherstone
2021-11-12 01:06:43 +11:00
parent c2f3478967
commit d87782d33a
7 changed files with 44 additions and 18 deletions
+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';