@base44-preview/cli 0.0.36-pr.339.1ae3acc → 0.0.36-pr.339.312de33

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/dist/cli/index.js CHANGED
@@ -243746,7 +243746,7 @@ var import_multer = __toESM(require_multer(), 1);
243746
243746
  import { randomUUID as randomUUID2 } from "node:crypto";
243747
243747
  import fs28 from "node:fs";
243748
243748
  import path18 from "node:path";
243749
- function createIntegrationRoutes(mediaFilesDir, baseUrl, logger) {
243749
+ function createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, logger) {
243750
243750
  const router = import_express3.Router({ mergeParams: true });
243751
243751
  const parseBody = import_express3.json();
243752
243752
  fs28.mkdirSync(mediaFilesDir, { recursive: true });
@@ -243785,13 +243785,15 @@ function createIntegrationRoutes(mediaFilesDir, baseUrl, logger) {
243785
243785
  const signed_url = `${baseUrl}/media/${file_uri}?signature=${signature}`;
243786
243786
  res.json({ signed_url });
243787
243787
  });
243788
- router.post("/Core/:endpointName", (req, res) => {
243788
+ router.post("/Core/:endpointName", (req, res, next) => {
243789
243789
  logger.warn(`Core.${req.params.endpointName} is not supported in local development`);
243790
- res.json({});
243790
+ req.url = req.originalUrl;
243791
+ remoteProxy(req, res, next);
243791
243792
  });
243792
- router.post("/installable/:packageName/integration-endpoints/:endpointName", (req, res) => {
243793
+ router.post("/installable/:packageName/integration-endpoints/:endpointName", (req, res, next) => {
243793
243794
  logger.warn(`${req.params.packageName}.${req.params.endpointName} is not supported in local development`);
243794
- res.json({});
243795
+ req.url = req.originalUrl;
243796
+ remoteProxy(req, res, next);
243795
243797
  });
243796
243798
  return router;
243797
243799
  }
@@ -243847,7 +243849,7 @@ async function createDevServer(options8) {
243847
243849
  const configDir = dirname12(project2.configPath);
243848
243850
  const mediaFilesDir = join16(configDir, "tmp", "files");
243849
243851
  app.use("/media", import_express4.default.static(mediaFilesDir));
243850
- const integrationRoutes = createIntegrationRoutes(mediaFilesDir, baseUrl, devLogger);
243852
+ const integrationRoutes = createIntegrationRoutes(mediaFilesDir, baseUrl, remoteProxy, devLogger);
243851
243853
  app.use("/api/apps/:appId/integration-endpoints", integrationRoutes);
243852
243854
  const customIntegrationRoutes = createCustomIntegrationRoutes(remoteProxy, devLogger);
243853
243855
  app.use("/api/apps/:appId/integrations/custom", customIntegrationRoutes);
@@ -248255,4 +248257,4 @@ export {
248255
248257
  CLIExitError
248256
248258
  };
248257
248259
 
248258
- //# debugId=06F31C5B0245F98264756E2164756E21
248260
+ //# debugId=5442B05AECB18F3C64756E2164756E21