1
0
mirror of https://github.com/quay/quay.git synced 2026-01-27 18:42:52 +03:00
Files
quay/web/webpack.dev.js
jbpratt 180d2903e7 fix(ui): use BRANDING.logo for customizable logo URL (PROJQUAY-9462) (#4393)
The React UI was referencing the non-existent ENTERPRISE_DARK_LOGO_URL
config field. Changed to use BRANDING.logo which is populated by the
backend from ENTERPRISE_LOGO_URL config. Also removed unnecessary
axios.defaults.baseURL prefix since BRANDING.logo contains the
complete path starting with /.

This matches the Angular UI implementation and enables customizable
logo functionality in the new UI.

Signed-off-by: Brady Pratt <bpratt@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-22 14:35:16 -04:00

53 lines
1.1 KiB
JavaScript

const Dotenv = require('dotenv-webpack');
const {merge} = require('webpack-merge');
const common = require('./webpack.common.js');
const HOST = process.env.HOST || 'localhost';
const PORT = process.env.PORT || '9000';
module.exports = merge(common('development'), {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
host: HOST,
port: PORT,
compress: true,
historyApiFallback: {
disableDotRule: true,
},
open: true,
proxy: {
'/api/v1': {
target: 'http://localhost:8080',
logLevel: 'debug',
},
'/csrf_token': {
target: 'http://localhost:8080',
logLevel: 'debug',
},
'/config': {
target: 'http://localhost:8080',
logLevel: 'debug',
},
'/static': {
target: 'http://localhost:8080',
logLevel: 'debug',
},
},
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
],
},
plugins: [
new Dotenv({
systemvars: true,
silent: true,
path: './.env.development',
}),
],
});