You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if it would be possible to have the current APP_ENV in the app template in order to conditionally render different app.js (e.g. once from /dist, once from vite development server).
I could achieve that by patching your code (providing APP_ENV in the constructor and retrieving it on render). This allows me to do kind of this:
Looks clumsy, but I found no other way so far. So the question is: Would there be one? I see, that the current Render puts it all into the JSON page data, which is fine. But I don't need it there for this special moment.
Sorry, if too stupid. If not, I would be happy to provide a small PR
The text was updated successfully, but these errors were encountered:
I'm wondering if it would be possible to have the current APP_ENV in the app template in order to conditionally render different app.js (e.g. once from /dist, once from vite development server).
I could achieve that by patching your code (providing APP_ENV in the constructor and retrieving it on render). This allows me to do kind of this:
Looks clumsy, but I found no other way so far. So the question is: Would there be one? I see, that the current Render puts it all into the JSON page data, which is fine. But I don't need it there for this special moment.
Sorry, if too stupid. If not, I would be happy to provide a small PR
The text was updated successfully, but these errors were encountered: