From 56baba74d7a98524d9e57744d009f2238770b14e Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Wed, 4 Jun 2025 21:36:01 +0200 Subject: [PATCH] #591 - fix tests --- config/inertia.php | 59 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 config/inertia.php diff --git a/config/inertia.php b/config/inertia.php new file mode 100644 index 00000000..1007a73c --- /dev/null +++ b/config/inertia.php @@ -0,0 +1,59 @@ + [ + 'enabled' => (bool) env('INERTIA_SSR_ENABLED', false), + 'url' => env('INERTIA_SSR_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' => (bool) env('INERTIA_ENCRYPT_HISTORY', false), + ], +];