@ovh-ux/manager-webpack-dev-server 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.0.1](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@3.0.0...@ovh-ux/manager-webpack-dev-server@3.0.1) (2022-10-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **webpack-dev-server:** allow to define custom config ([0dbcad6](https://github.com/ovh/manager/commit/0dbcad6a72b2c0f053fbb5b06707b0dca10ed75e))
7
+
8
+
9
+
1
10
  # [3.0.0](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@2.10.0...@ovh-ux/manager-webpack-dev-server@3.0.0) (2022-09-12)
2
11
 
3
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovh-ux/manager-webpack-dev-server",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "OVHcloud manager webpack development server configuration.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -15,7 +15,7 @@
15
15
  "author": "OVH SAS",
16
16
  "main": "src/index.js",
17
17
  "dependencies": {
18
- "@ovh-ux/manager-dev-server-config": "^5.0.0",
18
+ "@ovh-ux/manager-dev-server-config": "^5.0.1",
19
19
  "duplicate-package-checker-webpack-plugin": "^3.0.0",
20
20
  "friendly-errors-webpack-plugin": "^1.7.0",
21
21
  "webpack-dev-server": "^3.11.0",
package/src/config.js CHANGED
@@ -13,11 +13,13 @@ module.exports = (env) => {
13
13
  process.env.npm_package_config_region ||
14
14
  'eu'
15
15
  ).toLowerCase();
16
- const proxy = [serverProxy.v6(region)];
16
+
17
+ const envConfig = env.config || {};
18
+ const proxy = [serverProxy.v6(region, envConfig)];
17
19
 
18
20
  const isContainer = env.container || process.env.CONTAINER;
19
21
 
20
- const sso = new Sso(region);
22
+ const sso = new Sso(region, envConfig);
21
23
 
22
24
  if (yn(env.local2API) || yn(process.env.npm_package_config_local2API)) {
23
25
  proxy.unshift(serverProxy.aapi);