chore(dx/server): client paths not correct

This commit is contained in:
Elian Doran
2025-08-31 19:21:36 +03:00
parent 054c497678
commit 46cb869237
2 changed files with 4 additions and 2 deletions

View File

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

View File

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