Closed robsontenorio closed 5 years ago
this
inside the store is the store instance itself, which has not been created at the time of that function being run.
You have two options:
app.$env
bootstrap
mutation which you run when the app boots which loads the env vars inJust used nuxtInitServer() and called mutation for set initial state.
I am trying to use an env var as initial state on VUEX. Both does not work, because
this
does not exists. Any tips?ERROR