@mastra/deployer 0.0.1-alpha.3 → 0.0.1-alpha.4

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,5 +1,11 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.0.1-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 7babd5c: CLI build and other
8
+
3
9
  ## 0.0.1-alpha.3
4
10
 
5
11
  ### Patch Changes
@@ -3339,51 +3339,51 @@ function _createHonoServer() {
3339
3339
  app.use('*', serveStatic.serveStatic({
3340
3340
  root: './playground'
3341
3341
  }));
3342
- // Catch-all route to serve index.html for any non-API routes
3343
- app.get('*', /*#__PURE__*/function () {
3344
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(c, next) {
3345
- var _options3;
3346
- var indexHtml;
3347
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3348
- while (1) switch (_context4.prev = _context4.next) {
3349
- case 0:
3350
- if (!(c.req.path.startsWith('/api/') || c.req.path.startsWith('/swagger-ui') || c.req.path.startsWith('/openapi.json'))) {
3351
- _context4.next = 4;
3352
- break;
3353
- }
3354
- _context4.next = 3;
3355
- return next();
3356
- case 3:
3357
- return _context4.abrupt("return", _context4.sent);
3358
- case 4:
3359
- if (!((_options3 = options) != null && _options3.playground)) {
3360
- _context4.next = 9;
3361
- break;
3362
- }
3363
- _context4.next = 7;
3364
- return fsPromises.readFile(path.join(process.cwd(), './playground/index.html'), 'utf-8');
3365
- case 7:
3366
- indexHtml = _context4.sent;
3367
- return _context4.abrupt("return", c.newResponse(indexHtml, 200, {
3368
- 'Content-Type': 'text/html'
3369
- }));
3370
- case 9:
3371
- return _context4.abrupt("return", c.newResponse(html, 200, {
3372
- 'Content-Type': 'text/html'
3373
- }));
3374
- case 10:
3375
- case "end":
3376
- return _context4.stop();
3377
- }
3378
- }, _callee4);
3379
- }));
3380
- return function (_x10, _x11) {
3381
- return _ref5.apply(this, arguments);
3382
- };
3383
- }());
3384
3342
  }
3343
+ // Catch-all route to serve index.html for any non-API routes
3344
+ app.get('*', /*#__PURE__*/function () {
3345
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(c, next) {
3346
+ var _options3;
3347
+ var indexHtml;
3348
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3349
+ while (1) switch (_context4.prev = _context4.next) {
3350
+ case 0:
3351
+ if (!(c.req.path.startsWith('/api/') || c.req.path.startsWith('/swagger-ui') || c.req.path.startsWith('/openapi.json'))) {
3352
+ _context4.next = 4;
3353
+ break;
3354
+ }
3355
+ _context4.next = 3;
3356
+ return next();
3357
+ case 3:
3358
+ return _context4.abrupt("return", _context4.sent);
3359
+ case 4:
3360
+ if (!((_options3 = options) != null && _options3.playground)) {
3361
+ _context4.next = 9;
3362
+ break;
3363
+ }
3364
+ _context4.next = 7;
3365
+ return fsPromises.readFile(path.join(process.cwd(), './playground/index.html'), 'utf-8');
3366
+ case 7:
3367
+ indexHtml = _context4.sent;
3368
+ return _context4.abrupt("return", c.newResponse(indexHtml, 200, {
3369
+ 'Content-Type': 'text/html'
3370
+ }));
3371
+ case 9:
3372
+ return _context4.abrupt("return", c.newResponse(html, 200, {
3373
+ 'Content-Type': 'text/html'
3374
+ }));
3375
+ case 10:
3376
+ case "end":
3377
+ return _context4.stop();
3378
+ }
3379
+ }, _callee4);
3380
+ }));
3381
+ return function (_x10, _x11) {
3382
+ return _ref5.apply(this, arguments);
3383
+ };
3384
+ }());
3385
3385
  return _context5.abrupt("return", app);
3386
- case 45:
3386
+ case 46:
3387
3387
  case "end":
3388
3388
  return _context5.stop();
3389
3389
  }