Skip to content

Commit f33ba45

Browse files
Merge pull request #714 from bram-pkg/patch-3
[2.x] Allow environment config for `ssr.enabled` and `ssr.url`
2 parents 9114fe8 + 2eb800f commit f33ba45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/inertia.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
'ssr' => [
2323

24-
'enabled' => true,
24+
'enabled' => (bool) env('INERTIA_SSR_ENABLED', true),
2525

26-
'url' => 'http://127.0.0.1:13714',
26+
'url' => env('INERTIA_SSR_URL', 'http://127.0.0.1:13714'),
2727

2828
// 'bundle' => base_path('bootstrap/ssr/ssr.mjs'),
2929

@@ -66,7 +66,7 @@
6666

6767
'history' => [
6868

69-
'encrypt' => false,
69+
'encrypt' => (bool) env('INERTIA_ENCRYPT_HISTORY', false),
7070

7171
],
7272

0 commit comments

Comments
 (0)