Storages

After storages are created, you can import them anywhere in the project to use them. To import storages, use the storages feature, importing straight from Stagync.

import { storages } from 'stagync'

The “storages” feature loads all storages created with createStorages. We suggest that you always extract storages for better readability of the code.

const { websites, profiles } = storages

Next: Storages features


Table of contents