feat(raw): add .sql
to raw file extensions
#2745
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π 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