can't set `head.script.src` to env var inside `nuxt.config.js` file
[issue link]In my nuxt.config.js file I insert a JS file into my site using the head attribute. I set the src of the file to an env var (process.env.FILE_URL) but can’t seem to get this working. I am seeing the following behaviour:
- When running
nuxt devthe env var value is injected correctly and the correct file is loaded. - When running
nuxt build && nuxt startthe value is not injected and I getundefined. - If I set the
srcattr to be an immediately executing function which console logs and then returnsprocess.env.FILE_URL, the console log is the correct value, but thesrcis still set toundefined.
Is this something anyone has seen or can help me with? I can’t find any documentation about whether this is expected behaviour, or a bug.