Skip to content

Commit 7d93e00

Browse files
committed
fix condition
1 parent 2a59a42 commit 7d93e00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Ssr/HttpGateway.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ public function __construct(
1919
public function dispatch(array $page): ?Response
2020
{
2121
if ($this->vite->isRunningHot()) {
22+
// todo: maybe ask laravel to make Vite::hotAsset() public
23+
// $url = $this->vite->hotAsset('render');
2224
$url = file_get_contents($this->vite->hotFile()).'/render';
23-
} elseif (config('inertia.ssr.enabled', true) || (new BundleDetector)->detect()) {
25+
} elseif (config('inertia.ssr.enabled', true) && (new BundleDetector)->detect()) {
2426
$url = str_replace('/render', '', config('inertia.ssr.url', 'http://127.0.0.1:13714')).'/render';
2527
} else {
2628
return null;

0 commit comments

Comments
 (0)