@jayfong/x-server 2.35.1 → 2.35.2

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.
@@ -355,10 +355,10 @@ class ApiGenerator {
355
355
  },
356
356
  paths: {},
357
357
  servers: [{
358
- url: `${process.env.APP_URL}`,
358
+ url: `${process.env.APP_URL}`.replace(/\/+$/, ''),
359
359
  description: '生产'
360
360
  }, {
361
- url: `http://127.0.0.1:${process.env.APP_PORT}/`,
361
+ url: `http://127.0.0.1:${process.env.APP_PORT}`,
362
362
  description: '本地'
363
363
  }]
364
364
  };
@@ -350,10 +350,10 @@ export class ApiGenerator {
350
350
  },
351
351
  paths: {},
352
352
  servers: [{
353
- url: `${process.env.APP_URL}`,
353
+ url: `${process.env.APP_URL}`.replace(/\/+$/, ''),
354
354
  description: '生产'
355
355
  }, {
356
- url: `http://127.0.0.1:${process.env.APP_PORT}/`,
356
+ url: `http://127.0.0.1:${process.env.APP_PORT}`,
357
357
  description: '本地'
358
358
  }]
359
359
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.35.1",
3
+ "version": "2.35.2",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",