We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently SPA mode doesn't allows to pass additional context to the render function.
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.
reply.html({ version: env.BUILD_VERSION });
The text was updated successfully, but these errors were encountered:
Use https://vitejs.dev/config/#using-environment-variables-in-config?
Sorry, something went wrong.
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.
VITE_
But this feature request is very much worthwhile, I'll look into it and circle back.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: