From 3aa30f0be036a86b51e07bb2e72ef1c6715d29f5 Mon Sep 17 00:00:00 2001 From: NicDoesCode Date: Sat, 11 May 2024 18:34:14 +1000 Subject: [PATCH] Add metadata directory to deployment script. --- webpack.config.js | 3 ++- wwwroot/modules/components/versionManager.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 5cb339a..00568c4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -84,7 +84,8 @@ export default { patterns: [ { from: 'wwwroot/assets/image', to: 'assets/image' }, { from: 'wwwroot/assets/sample', to: 'assets/sample', noErrorOnMissing: true }, - { from: 'wwwroot/config', to: 'config', noErrorOnMissing: true } + { from: 'wwwroot/config', to: 'config', noErrorOnMissing: true }, + { from: 'wwwroot/metadata', to: 'metadata' }, ] }), new HtmlWebpackPlugin({ diff --git a/wwwroot/modules/components/versionManager.js b/wwwroot/modules/components/versionManager.js index 7dda738..68532e9 100644 --- a/wwwroot/modules/components/versionManager.js +++ b/wwwroot/modules/components/versionManager.js @@ -59,7 +59,7 @@ export default class VersionManager { if (resp.ok) { this.#version = JSON.parse(await resp.text()); } else { - this.#version = { versions: [], channels: {} }; + this.#version = { versions: {}, channels: {}, channelHostMappings: {} }; } return this.#version;