Skip to content

Conversation

@omeraplak
Copy link
Member

This PR prevents a potential runtime error in LibSQLStorage that could occur when accessing this.options.debug if the options object wasn't fully initialized, particularly noticeable in Next.js environments. It changes the access to use optional chaining (this.options?.debug).

Closes #34

@cloudflare-workers-and-pages
Copy link

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec6ddc0
Status: ✅  Deploy successful!
Preview URL: https://ffc9e97d.voltagent.pages.dev
Branch Preview URL: https://bug-libsql-debug.voltagent.pages.dev

View logs

@omeraplak omeraplak merged commit 9acbbb8 into main Apr 24, 2025
5 checks passed
@omeraplak omeraplak deleted the bug/libsql-debug branch April 24, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Potential runtime error accessing debug option in LibSQLStorage

1 participant