In a Laravel project, I have multiple SSR (Server-Side Rendering) apps. Even when I launched their nodes separately, they were consistently redirecting to the first node. Therefore, I restructured the setup to work with multiple nodes seamlessly.
I added separate middlewares for each app consistently.;
// both of them has their conf.
class HandleInertiaAppRequests extends Middleware
protected $bundleConfig = 'app';
class HandleInertiaBusinessRequests extends Middleware
protected $bundleConfig = 'business';
In a Laravel project, I have multiple SSR (Server-Side Rendering) apps. Even when I launched their nodes separately, they were consistently redirecting to the first node. Therefore, I restructured the setup to work with multiple nodes seamlessly.
Example Config (inertia.php)
Vite Config (vite.config.js)
Middlewares
I added separate middlewares for each app consistently.;