In my nuxt.config.js file I am using publicRuntimeConfig to store some environment variables:
publicRuntimeConfig: {
apiKey: process.env.API_KEY,
}
and then accessing them in components with: this.$config.apiKey.
Switching to using privateRuntimeConfig the same method of accessing properties is not working. According to the documentation when ssr: true, there doesnt seem to be a different method for accessing the values. How can I access these values?