mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
fix: correctly resolve the package version (#8016)
The property name is `VITE_PKG_VERSION` (not `PKG_VERSION`) Resolves #7984
This commit is contained in:

committed by
GitHub

parent
dc66261c19
commit
79257a1923
@ -339,7 +339,7 @@ export const exportToSvg = async (
|
|||||||
assetPath =
|
assetPath =
|
||||||
window.EXCALIDRAW_ASSET_PATH ||
|
window.EXCALIDRAW_ASSET_PATH ||
|
||||||
`https://unpkg.com/${import.meta.env.VITE_PKG_NAME}@${
|
`https://unpkg.com/${import.meta.env.VITE_PKG_NAME}@${
|
||||||
import.meta.env.PKG_VERSION
|
import.meta.env.VITE_PKG_VERSION
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
if (assetPath?.startsWith("/")) {
|
if (assetPath?.startsWith("/")) {
|
||||||
|
Reference in New Issue
Block a user