Skip to content

Commit 6655f77

Browse files
committed
Fix libsql mastra.db doesnt work in serverless
1 parent 7f8175f commit 6655f77

File tree

1 file changed

+1
-3
lines changed
  • typescript-sdk/apps/dojo/src/mastra

1 file changed

+1
-3
lines changed

typescript-sdk/apps/dojo/src/mastra/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ export const mastra = new Mastra({
6767
model: openai("gpt-4o-mini"),
6868
tools: { get_weather: weatherTool },
6969
memory: new Memory({
70-
storage: new LibSQLStore({
71-
url: "file:../mastra.db", // path is relative to the .mastra/output directory
72-
}),
70+
storage: getStorage(),
7371
}),
7472
}),
7573
shared_state: new Agent({

0 commit comments

Comments
 (0)