mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
#591 - fix tests
This commit is contained in:
59
config/inertia.php
Normal file
59
config/inertia.php
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| 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.
|
||||||
|
|
|
||||||
|
| 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
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'ssr' => [
|
||||||
|
'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),
|
||||||
|
],
|
||||||
|
];
|
Reference in New Issue
Block a user