This is an automated email from the ASF dual-hosted git repository.
andytaylor pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git
The following commit(s) were added to refs/heads/main by this push:
new 3b0d694 ARTEMIS-5471 - Simplify base URL logic
3b0d694 is described below
commit 3b0d694f6c85ca5086817fa8b892cbc65510eb3a
Author: GChuf <[email protected]>
AuthorDate: Tue May 13 13:54:22 2025 +0200
ARTEMIS-5471 - Simplify base URL logic
---
artemis-console-extension/artemis-extension/.env | 19 -------------------
.../artemis-extension/app/public/index.html | 2 +-
.../artemis-extension/app/webpack.config.cjs | 4 ----
3 files changed, 1 insertion(+), 24 deletions(-)
diff --git a/artemis-console-extension/artemis-extension/.env
b/artemis-console-extension/artemis-extension/.env
deleted file mode 100644
index a445794..0000000
--- a/artemis-console-extension/artemis-extension/.env
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-BROWSER=none
-PORT=3001
-PUBLIC_URL=/console
diff --git a/artemis-console-extension/artemis-extension/app/public/index.html
b/artemis-console-extension/artemis-extension/app/public/index.html
index e278971..b158795 100644
--- a/artemis-console-extension/artemis-extension/app/public/index.html
+++ b/artemis-console-extension/artemis-extension/app/public/index.html
@@ -19,7 +19,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
- <base href="%PUBLIC_URL%/" />
+ <base href="/hawtio/" />
<meta name="description" content="ActiveMQ Artemis Management Console" />
<!-- Hawtio branding styles and favicon placeholders -->
diff --git a/artemis-console-extension/artemis-extension/app/webpack.config.cjs
b/artemis-console-extension/artemis-extension/app/webpack.config.cjs
index a9f1ffc..ba802c5 100644
--- a/artemis-console-extension/artemis-extension/app/webpack.config.cjs
+++ b/artemis-console-extension/artemis-extension/app/webpack.config.cjs
@@ -20,7 +20,6 @@ const { hawtioBackend } =
require('@hawtio/backend-middleware')
const { dependencies } = require('./package.json')
const path = require("path")
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
-const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const TerserPlugin = require("terser-webpack-plugin")
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin")
const { WebpackManifestPlugin } = require("webpack-manifest-plugin")
@@ -59,9 +58,6 @@ module.exports = (webpackEnv, args) => {
minifyURLs: true
}
} : undefined)),
- new InterpolateHtmlPlugin(HtmlWebpackPlugin, {
- PUBLIC_URL: '/hawtio'
- }),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact