@mastra/factory 0.1.0-alpha.5 → 0.1.0-alpha.6
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 +6 -0
- package/dist/factory.d.ts +2 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +1 -1
- package/dist/factory.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -38561,7 +38561,7 @@ var MastraFactory = class {
|
|
|
38561
38561
|
async prepare() {
|
|
38562
38562
|
if (this.#preparing) throw new Error("MastraFactory.prepare() called twice");
|
|
38563
38563
|
this.#preparing = true;
|
|
38564
|
-
const publicOrigin = (this.#config.publicUrl ?? "http://localhost:
|
|
38564
|
+
const publicOrigin = (this.#config.publicUrl ?? "http://localhost:4111").replace(/\/+$/, "");
|
|
38565
38565
|
const allowedOrigins = (this.#config.allowedOrigins ?? []).map((o) => o.replace(/\/+$/, "")).filter(Boolean);
|
|
38566
38566
|
const storage = this.#config.storage;
|
|
38567
38567
|
const vector = this.#config.vector;
|