Skip to content

Commit 99dd30b

Browse files
Fix inertia page testing fails because of wrong page path (#66)
* publish inertia.js config * set inertia page path to js/pagess for testing * Update inertia.php * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 799c3c2 commit 99dd30b

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

config/inertia.php

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 each initial request made to your application's pages
12+
| so that server rendered HTML is delivered for the user's browser.
13+
|
14+
| See: https://inertiajs.com/server-side-rendering
15+
|
16+
*/
17+
18+
'ssr' => [
19+
'enabled' => true,
20+
'url' => 'http://127.0.0.1:13714',
21+
// 'bundle' => base_path('bootstrap/ssr/ssr.mjs'),
22+
23+
],
24+
25+
/*
26+
|--------------------------------------------------------------------------
27+
| Testing
28+
|--------------------------------------------------------------------------
29+
|
30+
| The values described here are used to locate Inertia components on the
31+
| filesystem. For instance, when using `assertInertia`, the assertion
32+
| attempts to locate the component as a file relative to the paths.
33+
|
34+
*/
35+
36+
'testing' => [
37+
38+
'ensure_pages_exist' => true,
39+
40+
'page_paths' => [
41+
resource_path('js/pages'),
42+
],
43+
44+
'page_extensions' => [
45+
'js',
46+
'jsx',
47+
'svelte',
48+
'ts',
49+
'tsx',
50+
'vue',
51+
],
52+
53+
],
54+
55+
];

0 commit comments

Comments
 (0)