2666 [useStorage] getItem and getItemRaw -> Inconsistent behaviour between dev and preview/production
โ Type of change
[ ] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] ๐ Bug fix (a non-breaking change that fixes an issue)
[x] ๐ Enhancement (improving an existing functionality like performance)
[ ] โจ New feature (a non-breaking change that adds functionality)
[ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
[ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
The change adds the .sql extension and the application/sql mime type (that is what the mime library assigns to .sql files) to the list of file types that are stored as string and not as Uint8Array.
That makes the process to use the server:assets storage for .sql files straightforward and intuitive.
Resolves partly #2666
The change does not solve the issue that useStorage acts differently in dev and production environment, but it solves the problem that .sql files are not stored as string.
๐ Linked issue
2666 [useStorage] getItem and getItemRaw -> Inconsistent behaviour between dev and preview/production
โ Type of change
๐ Description
The change adds the
.sql
extension and theapplication/sql
mime type (that is what themime
library assigns to .sql files) to the list of file types that are stored as string and not as Uint8Array.That makes the process to use the server:assets storage for .sql files straightforward and intuitive.
Resolves partly #2666 The change does not solve the issue that useStorage acts differently in dev and production environment, but it solves the problem that .sql files are not stored as string.
๐ Checklist