Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/inertia.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),

Expand Down
2 changes: 1 addition & 1 deletion src/Ssr/HttpGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/HttpGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ public function test_it_uses_the_configured_http_url_when_the_bundle_file_is_det
$this->assertEquals('<div id="app">SSR Response</div>', $response->body);
}

public function test_it_uses_the_configured_http_url__when_bundle_file_detection_is_disabled()
public function test_it_uses_the_configured_http_url_when_bundle_file_detection_is_disabled()
{
config([
'inertia.ssr.enabled' => true,
'inertia.ssr.dispatch_without_bundle' => true,
'inertia.ssr.ensure_bundle_exists' => false,
'inertia.ssr.bundle' => null,
]);

Expand Down