Merge pull request #24460 from frappe/fix-app-path

fix(Build): reinit `app_path`, avoid `get_app_path`
This commit is contained in:
Alan 2024-01-19 15:59:12 +05:30 committed by GitHub
commit 56b85823ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,7 +158,7 @@ async function update_assets_json_from_built_assets(apps) {
}
async function update_assets_obj(app, assets, assets_rtl) {
const app_path = get_app_path(app);
const app_path = path.join(apps_path, app, app);
const dist_path = path.join(app_path, "public, dist");
const files = await glob("**/*.bundle.*.{js,css}", { cwd: dist_path });
const prefix = path.join("/", "assets", app, "dist");