fix(vite): use base path

This commit is contained in:
Elian Doran
2025-05-19 19:51:33 +03:00
parent 6286c39381
commit e536ec4cbf
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
import assetPath from "./asset_path.js";
import { isDev } from "./utils.js";
export default isDev ? assetPath + "/src" : assetPath + "/app-dist";
export default assetPath + "/src";

View File

@@ -1,6 +1,6 @@
import packageJson from "../../package.json" with { type: "json" };
import { isDev } from "./utils";
const assetPath = isDev ? `http://localhost:4200` : `assets/v${packageJson.version}`;
const assetPath = isDev ? `http://localhost:4200/assets/v${packageJson.version}` : `assets/v${packageJson.version}`;
export default assetPath;