feat: correct path in SVG exports for production

This commit is contained in:
Arnošt Pleskot 2023-08-21 09:52:48 +02:00
parent 06ae04c0be
commit 26cd98efb1
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -179,8 +179,7 @@ export const exportToSvg = async (
svgRoot.setAttribute("filter", THEME_FILTER);
}
// let assetPath = "https://excalidraw.com/";
let assetPath = "http://localhost:3000/";
let assetPath = "https://excalidraw.com/";
// Asset path needs to be determined only when using package
if (import.meta.env.VITE_IS_EXCALIDRAW_NPM_PACKAGE) {
assetPath =