Open felixmosh opened 9 months ago
Will it work inside the HTML? (In my case, I need it to be dynamic depending on the domain the app got served from)
As long as it's prefixed with VITE_
, it will be picked up by Vite automatically.
But this feature request is very much worthwhile, I'll look into it and circle back.
Prerequisites
🚀 Feature Proposal
Currently SPA mode doesn't allows to pass additional context to the render function.
Motivation
I have a case that I wan't to render some stuff on the html not related to the React app.
For example, render app version inside a meta tag.
Example