I’m trying to import a public $config
file without using useContext hook in nuxt composition API.
According to Nuxt3 official document, we are able to import config file without using useContext
hook. You can read this document.
Like this:
import config from '#config'
Just wondering, is that possible in Nuxt2?
nuxt version: 2.14.9
@nuxtjs/composition-api version: ^0.29.0