Skip to content

Commit

Permalink
hid the apikey in env
Browse files Browse the repository at this point in the history
  • Loading branch information
MokujinMap committed May 31, 2024
1 parent 267c212 commit f581873
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions example/search-control/common.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type {MMapLocationRequest, LngLatBounds, SearchResponse, Margin, Feature} from '@mappable-world/mappable-types';

mappable.ready.then(() => {
mappable
.getDefaultConfig()
.setApikeys({search: 'pk_ZAROIlpukeMufiKGZFwyulaUQEXIjDySkgduDDiovkifzqXLsJweeFmxeoRwZNNc'});
mappable.getDefaultConfig().setApikeys({
search: '%APIKEY%'
});
});

const BOUNDS: LngLatBounds = [
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"sync-colors": "node -r dotenv/config -r ts-node/register ./tools/scripts/sync-colors.ts"
},
"devDependencies": {
"@mappable-world/mappable-cli": "^0.0.32",
"@mappable-world/mappable-cli": "^0.0.34",
"@mappable-world/mappable-types": "^0.0.20",
"@types/got": "9.6.12",
"@types/jest": "29.5.3",
Expand Down

0 comments on commit f581873

Please sign in to comment.