Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): make sure serialized options are not modified #2977

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jan 7, 2025

resolves #2174

Nitro mounts unstorage drivers with same config object that is going to be bundled for prod during build to expose nitro.storage.

Due to unjs/unstorage#566, unstorage drivers apply their runtime normalization (such as resolving paths to absolute path) that causes side-effect to be carried to bundled options.

@pi0 pi0 changed the title fix: make sure serialized options are not modified fix(storage): make sure serialized options are not modified Jan 7, 2025
@pi0 pi0 merged commit 9371b7c into v2 Jan 7, 2025
4 checks passed
@pi0 pi0 deleted the fix/storage-path branch January 7, 2025 23:12
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.

Paths are not relative after build.
1 participant