fix(web): Add default master API key fallback for web route calculation
This commit is contained in:
@@ -5,7 +5,7 @@ import { decodePolyline } from './utils/polyline';
|
|||||||
import WeatherPanel from './components/WeatherPanel';
|
import WeatherPanel from './components/WeatherPanel';
|
||||||
import { LineOfSightTool } from './components/LineOfSightTool';
|
import { LineOfSightTool } from './components/LineOfSightTool';
|
||||||
|
|
||||||
const DEFAULT_API_KEY = (import.meta as any).env.VITE_API_KEY || '';
|
const DEFAULT_API_KEY = (import.meta as any).env.VITE_API_KEY || localStorage.getItem('intaleq_api_key') || 'zP9vL5mK2nQ8xR7jT4wS1yB6hG3fV0cX';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [map, setMap] = useState<any>(null);
|
const [map, setMap] = useState<any>(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user