inertia.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Server Side Rendering
  6. |--------------------------------------------------------------------------
  7. |
  8. | These options configures if and how Inertia uses Server Side Rendering
  9. | to pre-render each initial request made to your application's pages
  10. | so that server rendered HTML is delivered for the user's browser.
  11. |
  12. | See: https://inertiajs.com/server-side-rendering
  13. |
  14. */
  15. 'ssr' => [
  16. 'enabled' => true,
  17. 'url' => 'http://127.0.0.1:13714',
  18. // 'bundle' => base_path('bootstrap/ssr/ssr.mjs'),
  19. ],
  20. /*
  21. |--------------------------------------------------------------------------
  22. | Testing
  23. |--------------------------------------------------------------------------
  24. |
  25. | The values described here are used to locate Inertia components on the
  26. | filesystem. For instance, when using `assertInertia`, the assertion
  27. | attempts to locate the component as a file relative to the paths.
  28. |
  29. */
  30. 'testing' => [
  31. 'ensure_pages_exist' => true,
  32. 'page_paths' => [
  33. resource_path('js/pages'),
  34. ],
  35. 'page_extensions' => [
  36. 'js',
  37. 'jsx',
  38. 'svelte',
  39. 'ts',
  40. 'tsx',
  41. 'vue',
  42. ],
  43. ],
  44. ];