diff --git a/config/inertia.php b/config/inertia.php index 4b1d57f7..f765ac07 100644 --- a/config/inertia.php +++ b/config/inertia.php @@ -25,7 +25,7 @@ 'url' => env('INERTIA_SSR_URL', 'http://127.0.0.1:13714'), - 'dispatch_without_bundle' => (bool) env('INERTIA_SSR_DISPATCH_WITHOUT_BUNDLE', false), + 'ensure_bundle_exists' => (bool) env('INERTIA_SSR_ENSURE_BUNDLE_EXISTS', true), // 'bundle' => base_path('bootstrap/ssr/ssr.mjs'), diff --git a/src/Ssr/HttpGateway.php b/src/Ssr/HttpGateway.php index 09a87363..db43ecaf 100644 --- a/src/Ssr/HttpGateway.php +++ b/src/Ssr/HttpGateway.php @@ -67,7 +67,7 @@ public function isHealthy(): bool */ protected function shouldDispatchWithoutBundle(): bool { - return config('inertia.ssr.dispatch_without_bundle', false); + return ! config('inertia.ssr.ensure_bundle_exists', true); } /** diff --git a/tests/HttpGatewayTest.php b/tests/HttpGatewayTest.php index 0d1ccafa..c34236c4 100644 --- a/tests/HttpGatewayTest.php +++ b/tests/HttpGatewayTest.php @@ -63,11 +63,11 @@ public function test_it_uses_the_configured_http_url_when_the_bundle_file_is_det $this->assertEquals('