From aa2361d90a6338663d19b9555da1ff196c7e0fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Dombya?= <135591453+hervedombya@users.noreply.github.com> Date: Wed, 27 Sep 2023 17:23:13 +0200 Subject: [PATCH] webpack dev Revert "webpack dev" This reverts commit e52d5be3de1ea6b505ef2a99aa5bd7ec27d9d71d. webpack dev good file remvoe feature xdm test Revert "remvoe feature xdm test" This reverts commit 90bf675535c2c7083a3125fb6561eb7d3d39d814. modify webpack fix header fix features line update access control headers --- public/assets/zenko/.well-known/runtime-app-configuration | 6 +++--- webpack.dev.js | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/assets/zenko/.well-known/runtime-app-configuration b/public/assets/zenko/.well-known/runtime-app-configuration index e3beb9717..0fbf9ef4a 100644 --- a/public/assets/zenko/.well-known/runtime-app-configuration +++ b/public/assets/zenko/.well-known/runtime-app-configuration @@ -3,7 +3,7 @@ "apiVersion": "ui.scality.com/v1alpha1", "metadata": { "kind": "zenko-ui", - "name": "zenko.eu-west-1" + "name": "zenko-ui.eu-west-1" }, "spec": { "title": "Data Management", @@ -13,12 +13,12 @@ "zenkoEndpoint": "http://127.0.0.1:8383/s3", "iamEndpoint": "http://127.0.0.1:8383/iam", "features": ["XDM"], - "basePath": "/zenko" + "basePath": "" }, "auth": { "kind": "OIDC", "providerUrl": "https://ui.pod-choco.local/auth/realms/artesca", - "redirectUrl": "http://localhost:8084/zenko", + "redirectUrl": "http://localhost:8084/", "clientId": "zenko-ui", "responseType": "code", "scopes": "openid email profile", diff --git a/webpack.dev.js b/webpack.dev.js index 5d9e645fd..4453ede8e 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -14,11 +14,17 @@ const accessControlAllowHeaders = [ 'x-amz-date', 'if-none-match', 'x-amz-bucket-object-lock-enabled', + 'x-authentication-token', + 'content-md5', + 'x-amz-bypass-governance-retention', ]; module.exports = merge(common, { mode: 'development', devtool: 'inline-source-map', + output: { + publicPath: '/zenko/', + }, devServer: { static: path.join(__dirname, 'public/assets'), host: '127.0.0.1',