1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 05:24:03 +00:00

[4.x] Fix ViteBundler not affecting Vite static calls (#1389)

* Fix ViteBundler not affecting Vite static calls

Replace custom Vite class override with Vite::createAssetPathsUsing() to ensure ViteBundler works for both container and static usage when asset_helper_override is enabled.

Fixes #1388

* Remove redundant logic from tests

* Simplify test further

* Re-add file creation logic

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
This commit is contained in:
Farishrf 2025-08-25 18:27:59 +03:00 committed by GitHub
parent 3b42c9e20c
commit 99d854ed8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 35 additions and 41 deletions

View file

@ -1,22 +0,0 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Overrides;
use Illuminate\Foundation\Vite as BaseVite;
class Vite extends BaseVite
{
/**
* Generate an asset path for the application.
*
* @param string $path
* @param bool|null $secure
* @return string
*/
protected function assetPath($path, $secure = null)
{
return global_asset($path);
}
}