1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/web/webpack.dev.js
Harish Govindarajulu 2d42e46eca fix(ui): OAuth token generation should not redirect to Old UI (PROJQUAY-9600) (#4406)
* Add nginx change to allow Oauth token generation in react

* Create new component to handle OAuth token generation in new ui

* Update cypress test for OAuth token generation

* Fix cypress test

Adds missing optional chaining + enable update-user.cy.ts tests

* Add assignuser OAuth token generation + cypress test
2025-10-29 12:33:40 -04:00

57 lines
1.2 KiB
JavaScript

const Dotenv = require('dotenv-webpack');
const {merge} = require('webpack-merge');
const common = require('./webpack.common.js');
const HOST = process.env.HOST || '0.0.0.0';
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',
},
'/oauth': {
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',
}),
],
});