Using getStore
outside a function only works in dev, not in production
#175
Labels
type: bug
code to address defects in shipped code
Describe the bug
When using for example:
Outside a function,
netlify dev
is fine with it and will store and retrieve stuff as expected. However when using this in production (or a deploy preview), the following error is thrown.To fix this,
getStore
needs to happen within a function called by a request.Configuration
The text was updated successfully, but these errors were encountered: