-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: store climb data as json and direct upload to mbox
- Loading branch information
viet nguyen
committed
Feb 18, 2024
1 parent
368c199
commit 224bc30
Showing
8 changed files
with
61 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { config } from 'dotenv' | ||
|
||
config({ path: ['.env.local', '.env'] }) | ||
|
||
const mapboxUsername = process.env.MAPBOX_USERNAME ?? '' | ||
const mapboxToken = process.env.MAPBOX_TOKEN ?? '' | ||
const workingDir = process.env.MAPTILES_WORKING_DIR ?? '' | ||
|
||
if (mapboxUsername.trim() === '') { | ||
throw new Error('MAPBOX_USERNAME not set') | ||
} | ||
|
||
if (mapboxToken.trim() === '') { | ||
throw new Error('MAPBOX_TOKEN not set') | ||
} | ||
|
||
if (workingDir.trim() === '') { | ||
throw new Error('MAPTILES_WORKING_DIR not set') | ||
} | ||
|
||
export { mapboxUsername, mapboxToken, workingDir } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters