@webiny/build-tools 6.6.0-alpha.2 → 6.6.0-alpha.3

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.
@@ -47,8 +47,14 @@ export const createRsbuildConfig = ({ cwd }) => {
47
47
  },
48
48
  // Port precedence matches the served admin app (`webiny serve admin`): an explicit
49
49
  // WEBINY_ADMIN_PORT wins, then a PORT injected by the environment, then the 3001 default.
50
+ //
51
+ // An explicit port is strict, same rule the api runner follows. Auto-advancing off a busy
52
+ // port is a reasonable default, but it's the wrong answer when something was pointed at the
53
+ // port that was asked for: the dev proxy forwards to WEBINY_ADMIN_PORT, and a dev server that
54
+ // quietly moved one along would just leave it forwarding into nothing.
50
55
  server: {
51
56
  port: process.env.WEBINY_ADMIN_PORT || process.env.PORT || 3001,
57
+ strictPort: Boolean(process.env.WEBINY_ADMIN_PORT),
52
58
  host: "0.0.0.0"
53
59
  },
54
60
  html: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/build-tools",
3
- "version": "6.6.0-alpha.2",
3
+ "version": "6.6.0-alpha.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",