Skip to content

Commit

Permalink
docs: add a comment in src/utils/consts.ts to remind about security…
Browse files Browse the repository at this point in the history
… considerations regarding the `MAPBOX_TOKEN` (yihong0618#644)
  • Loading branch information
changchiyou authored and Kugin committed Sep 13, 2024
1 parent 322408c commit ea706c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/utils/const.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// const
const MAPBOX_TOKEN =
'pk.eyJ1IjoiY3RrdWdpbiIsImEiOiJjbG9rdTltZWQwOHdyMmxzNnByMWp0dDV6In0.g1I0Xy6JqqlD7ZFv98xVpQ';
// For security reasons, please avoid using the default public token provided by Mapbox as much as possible.
// Instead, manually add a new token and apply URL restrictions.
// (please refer to https://github.com/yihong0618/running_page/issues/643#issuecomment-2042668580)
'pk.eyJ1IjoieWlob25nMDYxOCIsImEiOiJja2J3M28xbG4wYzl0MzJxZm0ya2Fua2p2In0.PNKfkeQwYuyGOTT_x9BJ4Q';
const MUNICIPALITY_CITIES_ARR = [
'北京市',
'上海市',
Expand Down Expand Up @@ -94,8 +97,7 @@ export {
LIGHTS_ON,
};

// 224,237,94
const nike = 'rgb(27,193,7)'; // if you want change the main color change here src/styles/variables.scss
const nike = 'rgb(224,237,94)'; // if you want change the main color change here src/styles/variables.scss

// If your map has an offset please change this line
// issues #92 and #198
Expand Down

0 comments on commit ea706c8

Please sign in to comment.