You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a niche case, but in a Laravel project we have two completely separate builds. We have the frontend which uses SSR; then we have the backend admin panel which uses Inertia as well, but does not use SSR.
The problem is that the SSR server will try to respond to every single request (i.e. both the frontend and the backend).
As a quick fix, in inertia-laravel/src/Ssr/HttpGateway.php, in the dispatch function, I've done a check like so:
if (Str::startsWith($page['url'], '/admin')) {
returnnull;
}
Would it be possible to add some way to ignore certain routes using the config?
The text was updated successfully, but these errors were encountered:
Probably a niche case, but in a Laravel project we have two completely separate builds. We have the frontend which uses SSR; then we have the backend admin panel which uses Inertia as well, but does not use SSR.
The problem is that the SSR server will try to respond to every single request (i.e. both the frontend and the backend).
As a quick fix, in
inertia-laravel/src/Ssr/HttpGateway.php
, in thedispatch
function, I've done a check like so:Would it be possible to add some way to ignore certain routes using the config?
The text was updated successfully, but these errors were encountered: