Skip to content

Commit a5671b9

Browse files
tnyleataylorotwell
andauthored
Adding the intertia config to use lowercase pages (#108)
* Adding the intertia config so that way the testing will use lowercase pages * formatting * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 431ba93 commit a5671b9

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

config/inertia.php

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Server Side Rendering
8+
|--------------------------------------------------------------------------
9+
|
10+
| These options configure if and how Inertia uses Server Side Rendering
11+
| to pre-render every initial visit made to your application's pages
12+
| automatically. A separate rendering service should be available.
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+
| Testing
27+
|--------------------------------------------------------------------------
28+
|
29+
| The values described here are used to locate Inertia components on the
30+
| filesystem. For instance, when using `assertInertia`, the assertion
31+
| attempts to locate the component as a file relative to the paths.
32+
|
33+
*/
34+
35+
'testing' => [
36+
'ensure_pages_exist' => true,
37+
38+
'page_paths' => [
39+
resource_path('js/pages'),
40+
],
41+
42+
'page_extensions' => [
43+
'js',
44+
'jsx',
45+
'svelte',
46+
'ts',
47+
'tsx',
48+
'vue',
49+
],
50+
],
51+
52+
];

0 commit comments

Comments
 (0)