@gxp-dev/tools 2.0.49 → 2.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxp-dev/tools",
3
- "version": "2.0.49",
3
+ "version": "2.0.50",
4
4
  "description": "Dev tools to create platform plugins",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -303,6 +303,9 @@ export default defineConfig(({ mode }) => {
303
303
  port: parseInt(env.NODE_PORT) || 3060,
304
304
  strictPort: true,
305
305
  https: getHttpsConfig(env),
306
+ allowedHosts: env.ALLOWED_HOSTS
307
+ ? env.ALLOWED_HOSTS.split(",").map((h) => h.trim()).filter(Boolean)
308
+ : [],
306
309
  cors: {
307
310
  origin: "*",
308
311
  methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
@@ -252,6 +252,9 @@ export default defineConfig(({ mode }) => {
252
252
  port: parseInt(env.NODE_PORT) || 3060,
253
253
  strictPort: true,
254
254
  https: getHttpsConfig(env),
255
+ allowedHosts: env.ALLOWED_HOSTS
256
+ ? env.ALLOWED_HOSTS.split(",").map((h) => h.trim()).filter(Boolean)
257
+ : [],
255
258
  cors: {
256
259
  origin: "*",
257
260
  methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],