This repository was archived by the owner on Dec 12, 2023. It is now read-only.
This repository was archived by the owner on Dec 12, 2023. It is now read-only.
Web Storage (localstorage) support? #70
Open
Description
Ask your question
Docummentation suggested that localstorage is supported by referencing to all drivers and unstorage supports localstorage:
Check out here what storage drivers are supported and how to configure them: https://github.com/unjs/unstorage#drivers
How can i use local storage as an session storage?
Use case: I want to store some arbitrary data without purchasing any additional infastructute. The nuxt application is a full static static side hosted on a CDN without server side rendering.
Additional information
Setting driver to localstorage causes the following error with yarn dev
:
TypeError: Cannot add property window, object is not extensible localstorage