unstorage db0 driver not working with config.ts #3437
ToBinio
started this conversation in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently trying to play around with the unstorage db0 driver.
Sadly, it does not seem to work with the nitro config.
I am always getting:
my config looks like this:
The
.sql
syntax works perfectly within theconfig.ts
Based on this, my best guess on what is going on is that during the config run step, the whole thing gets serialized and deserialized, losing the all the functions within the
database
obj.Since the string for sql
dialect
is still present, only.sql
breaks.Please let me know if I am doing something wrong or where I should report this!
Thanks
edit:
I found a workaround - https://nitro.build/guide/storage#runtime-configuration works which would make sense based on my theory
Beta Was this translation helpful? Give feedback.
All reactions