inertia.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. | Pages
  23. |--------------------------------------------------------------------------
  24. |
  25. | These options configure how Inertia discovers page components on the
  26. | filesystem. The paths and extensions are used to locate components
  27. | when rendering responses and during testing assertions.
  28. |
  29. */
  30. 'pages' => [
  31. 'paths' => [
  32. resource_path('js/pages'),
  33. ],
  34. 'extensions' => [
  35. 'js',
  36. 'jsx',
  37. 'svelte',
  38. 'ts',
  39. 'tsx',
  40. 'vue',
  41. ],
  42. ],
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Testing
  46. |--------------------------------------------------------------------------
  47. |
  48. | The values described here are used to locate Inertia components on the
  49. | filesystem. For instance, when using `assertInertia`, the assertion
  50. | attempts to locate the component as a file relative to the paths.
  51. |
  52. */
  53. 'testing' => [
  54. 'ensure_pages_exist' => true,
  55. ],
  56. ];