From 4e4508bfa5da618ecd0f82e1fc7a36e15fb7f801 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Mon, 14 Apr 2025 11:50:58 -0400 Subject: [PATCH 1/3] Adding the intertia config so that way the testing will use lowercase pages --- config/inertia.php | 73 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 config/inertia.php diff --git a/config/inertia.php b/config/inertia.php new file mode 100644 index 00000000..cd1d00a4 --- /dev/null +++ b/config/inertia.php @@ -0,0 +1,73 @@ + [ + + 'enabled' => true, + + 'url' => 'http://127.0.0.1:13714', + + // 'bundle' => base_path('bootstrap/ssr/ssr.mjs'), + + ], + + /* + |-------------------------------------------------------------------------- + | Testing + |-------------------------------------------------------------------------- + | + | The values described here are used to locate Inertia components on the + | filesystem. For instance, when using `assertInertia`, the assertion + | attempts to locate the component as a file relative to any of the + | paths AND with any of the extensions specified here. + | + */ + + 'testing' => [ + + 'ensure_pages_exist' => true, + + 'page_paths' => [ + + resource_path('js/pages'), + + ], + + 'page_extensions' => [ + + 'js', + 'jsx', + 'svelte', + 'ts', + 'tsx', + 'vue', + + ], + + ], + + 'history' => [ + + 'encrypt' => false, + + ], + +]; From 80cfefd9b613fbaa04e613577be94868c8a04fd9 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 5 Jun 2025 14:44:17 -0500 Subject: [PATCH 2/3] formatting --- config/inertia.php | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/config/inertia.php b/config/inertia.php index cd1d00a4..a4556c10 100644 --- a/config/inertia.php +++ b/config/inertia.php @@ -7,26 +7,18 @@ | Server Side Rendering |-------------------------------------------------------------------------- | - | These options configures if and how Inertia uses Server Side Rendering - | to pre-render the initial visits made to your application's pages. + | These options configure if and how Inertia uses Server Side Rendering + | to pre-render every initial visit made to your application's pages + | automatically. A separate rendering service should be available. | - | You can specify a custom SSR bundle path, or omit it to let Inertia - | try and automatically detect it for you. - | - | Do note that enabling these options will NOT automatically make SSR work, - | as a separate rendering service needs to be available. To learn more, - | please visit https://inertiajs.com/server-side-rendering + | See: https://inertiajs.com/server-side-rendering | */ 'ssr' => [ - 'enabled' => true, - 'url' => 'http://127.0.0.1:13714', - // 'bundle' => base_path('bootstrap/ssr/ssr.mjs'), - ], /* @@ -36,38 +28,30 @@ | | The values described here are used to locate Inertia components on the | filesystem. For instance, when using `assertInertia`, the assertion - | attempts to locate the component as a file relative to any of the - | paths AND with any of the extensions specified here. + | attempts to locate the component as a file relative to the paths. | */ 'testing' => [ - 'ensure_pages_exist' => true, 'page_paths' => [ - resource_path('js/pages'), - ], 'page_extensions' => [ - 'js', 'jsx', 'svelte', 'ts', 'tsx', 'vue', - ], ], 'history' => [ - 'encrypt' => false, - ], ]; From 4cadc517a2149a3d8d540a739fee760ae6f58848 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 5 Jun 2025 14:44:47 -0500 Subject: [PATCH 3/3] formatting --- config/inertia.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/inertia.php b/config/inertia.php index a4556c10..d15cad94 100644 --- a/config/inertia.php +++ b/config/inertia.php @@ -47,11 +47,6 @@ 'tsx', 'vue', ], - - ], - - 'history' => [ - 'encrypt' => false, ], ];