nuxt module configuration scoping

149 Views Asked by At

How can I move the configuration key of a nuxt module inside the runtimeConfig?

The reason is I want to be able to overwrite configuration value (secret) from the environment using: NUXT_API_SECRET. This apparently only works for keys inside the runtimeConfig scope. But the scope for a pre-existing module is a some <> key. How can this <> key be moved inside the runtimeConfig scope?

https://nuxt.com/docs/guide/going-further/runtime-config#environment-variables

https://github.com/xlanex6/nuxt-meilisearch/issues/26

0

There are 0 best solutions below