build fixes, fix terraform

This commit is contained in:
Will Freeman
2025-06-12 17:05:34 -06:00
parent cde95195a1
commit 5ef4399222
6 changed files with 468 additions and 4 deletions
+4 -4
View File
@@ -19,7 +19,7 @@ const dotenv = require('dotenv');
dotenv.config();
const presetsVersion = require('../package.json').devDependencies['@openstreetmap/id-tagging-schema'];
/* eslint-disable no-process-env */
const presetsUrl = (process.env.ID_PRESETS_CDN_URL || 'https://cdn.jsdelivr.net/npm/@openstreetmap/id-tagging-schema@{presets_version}').replace('{presets_version}', presetsVersion);
const presetsUrl = (process.env.ID_PRESETS_CDN_URL || 'https://id-tagging-schema.deflock.me/');
/* eslint-enable no-process-env */
let _currBuild = null;
@@ -99,9 +99,9 @@ function buildData() {
minifyJSON('data/territory_languages.json', 'dist/data/territory_languages.min.json'),
Promise.all([
// Fetch the icons that are needed by the expected tagging schema version
fetchOrRequire(`${presetsUrl}/dist/presets.min.json`),
fetchOrRequire(`${presetsUrl}/dist/preset_categories.min.json`),
fetchOrRequire(`${presetsUrl}/dist/fields.min.json`)
fetchOrRequire(`${presetsUrl}dist/presets.min.json`),
fetchOrRequire(`${presetsUrl}dist/preset_categories.min.json`),
fetchOrRequire(`${presetsUrl}dist/fields.min.json`)
])
.then(responses => Promise.all(responses.map(response => response.json())))
.then((results) => {