New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using process.env variables in app.html #881
Comments
I'll have a look. would you provide a minimal reproduction? |
Unfortunately that's not possible at the moment, but the simple fact that you didn't reply with "oh no that won't work because of X" tells me that it should be possible to access |
Well, honestly half the reason I asked was that it really doesn't seem like that should work. |
Ah ok, interesting, it works fine with Nuxt 2, but perhaps it's a webpack thing. |
I have a Nuxt 2.17.1 project which uses an
app.html
file to define various things.Within that
app.html
file it accesses variables likeprocess.env.CDN_PATH
to load such things as fonts from a CDN.These appear to be completely inaccessible with Nuxt Bridge.
Can anyone tell me how to get these environment variables to work in this case?
And if it's not possible, first of all why, and secondly, what would be an alternative method? I cannot find anything at all in the documentation with regards to this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: