Having trouble importing config.js with the project's API keys and getting undefined as a return value.
//config.js
var config = {
fbAPI: "key"
}
-
//nuxt.config.js
const cfg = require('./config')
env: {
fbAPI: cfg.apiKey
}
Wondering if this issue is related to run-time or if I'm overlooking something?