Skip to content

Commit 7af855f

Browse files
committed
publish inertia.js config
1 parent 5dc59ff commit 7af855f

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

config/inertia.php

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Server Side Rendering
8+
|--------------------------------------------------------------------------
9+
|
10+
| These options configures if and how Inertia uses Server Side Rendering
11+
| to pre-render the initial visits made to your application's pages.
12+
|
13+
| You can specify a custom SSR bundle path, or omit it to let Inertia
14+
| try and automatically detect it for you.
15+
|
16+
| Do note that enabling these options will NOT automatically make SSR work,
17+
| as a separate rendering service needs to be available. To learn more,
18+
| please visit https://inertiajs.com/server-side-rendering
19+
|
20+
*/
21+
22+
'ssr' => [
23+
24+
'enabled' => true,
25+
26+
'url' => 'http://127.0.0.1:13714',
27+
28+
// 'bundle' => base_path('bootstrap/ssr/ssr.mjs'),
29+
30+
],
31+
32+
/*
33+
|--------------------------------------------------------------------------
34+
| Testing
35+
|--------------------------------------------------------------------------
36+
|
37+
| The values described here are used to locate Inertia components on the
38+
| filesystem. For instance, when using `assertInertia`, the assertion
39+
| attempts to locate the component as a file relative to any of the
40+
| paths AND with any of the extensions specified here.
41+
|
42+
*/
43+
44+
'testing' => [
45+
46+
'ensure_pages_exist' => true,
47+
48+
'page_paths' => [
49+
50+
resource_path('js/Pages'),
51+
52+
],
53+
54+
'page_extensions' => [
55+
56+
'js',
57+
'jsx',
58+
'svelte',
59+
'ts',
60+
'tsx',
61+
'vue',
62+
63+
],
64+
65+
],
66+
67+
'history' => [
68+
69+
'encrypt' => false,
70+
71+
],
72+
73+
];

0 commit comments

Comments
 (0)