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
When we first switched to Vite, it did not have built-in support for env variable replacement in HTML files. It now has built-in support (as of 4.2) for this as documented here
Switch the HTML variables in code-studio, embed-grid, and embed-chart to use the built-in template and remove the htmlPlugin (our previous solution) from the vite.config.ts in those packages.
We used #ENV_VARIABLE# and Vite uses %ENV_VARIABLE% now
The text was updated successfully, but these errors were encountered:
Fixes#1161
Also fixed an embed-grid/embed-chart Vite proxy server issue in preview
mode
Tested by running `npm start` and looking at those tags in the head
which should be replaced (base, npm version, favicon). Then ran `npm run
build` and `npm run preview` and checked the tags in the built version
When we first switched to Vite, it did not have built-in support for env variable replacement in HTML files. It now has built-in support (as of 4.2) for this as documented here
Switch the HTML variables in
code-studio
,embed-grid
, andembed-chart
to use the built-in template and remove thehtmlPlugin
(our previous solution) from thevite.config.ts
in those packages.We used
#ENV_VARIABLE#
and Vite uses%ENV_VARIABLE%
nowThe text was updated successfully, but these errors were encountered: