Skip to content

Commit d76b2f9

Browse files
committed
env vars for SHST_ID_API_URL and SHST_TILE_URL
1 parent 266db67 commit d76b2f9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ typings/
6868

6969
# cache directory
7070
shst
71+
72+
data
73+
.DS_Store

src/tiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const sphericalMercator = new SphericalMercator({
1919

2020
const DEFAULT_ZLEVEL = 12;
2121

22-
const SHST_ID_API_URL = 'https://api.sharedstreets.io/v0.1.0/id/';
23-
const SHST_TILE_URL = 'https://tiles.sharedstreets.io/';
22+
const SHST_ID_API_URL = process.env.SHST_ID_API_URL || 'https://api.sharedstreets.io/v0.1.0/id/';
23+
const SHST_TILE_URL = process.env.SHST_TILE_URL || 'https://tiles.sharedstreets.io/';
2424

2525
const USE_LOCAL_CACHE = true;
2626
const SHST_TILE_CACHE_DIR = resolveHome('~/.shst/cache/tiles/');

0 commit comments

Comments
 (0)