Skip to content

Commit

Permalink
fix: use Url:path to fix authorization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
timnarr committed Sep 24, 2024
1 parent 7216207 commit 73e0413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vite.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Kirby\Cms\Asset;
use Kirby\Cms\Html;
use Kirby\Cms\Url;
use Kirby\Filesystem\F;

if (!function_exists('isViteDevMode')) {
Expand Down Expand Up @@ -41,7 +41,7 @@ function inlineViteAsset(string|array $files, string $type): void
} else {
$content = '';
foreach ($files as $file) {
$fileContent = F::read(vite()->asset($file));
$fileContent = F::read(Url::path(vite()->asset($file)));
$content .= $fileContent;
}

Expand Down

0 comments on commit 73e0413

Please sign in to comment.