Skip to content

Commit 0e29c65

Browse files
ebrelsfordalmccon
andauthored
Set branchPatterns to null to hide (#233)
* Set branchPatterns to null to hide * update local.example.js too --------- Co-authored-by: Alan McConchie <alan.mcconchie@gmail.com>
1 parent d87061f commit 0e29c65

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

public/config/gh-pages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ const stylePresets = [
154154
];
155155

156156
const customJs = [];
157+
const branchPatterns = null;
157158

158159
export {
159160
customJs,
160161
mapboxGlAccessToken,
161162
amazonLocationApiKey,
162163
region,
164+
branchPatterns,
163165
stylePresets,
164166
};

public/config/local.example.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ const stylePresets = [
7272
// },
7373
];
7474

75+
const branchPatterns = null; // pass null value to suppress the "Styles on a branch" menu, if you aren't using it
76+
7577
// Commented out example for branchpattern
7678
// const branchPatterns = [
7779
// {
@@ -89,4 +91,10 @@ const stylePresets = [
8991
// Example of stylePresetUrls
9092
// const stylePresetUrls = ['./presets/example.json'];
9193

92-
export { gazetteer, mapboxGlAccessToken, stylePresets, maptilerApiKey };
94+
export {
95+
gazetteer,
96+
mapboxGlAccessToken,
97+
branchPatterns,
98+
stylePresets,
99+
maptilerApiKey,
100+
};

0 commit comments

Comments
 (0)