We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have admin and public pages now I want to exclude all pages under admin folder and only SSR the pages under public folder.
The text was updated successfully, but these errors were encountered:
You may create an application middleware that turns it back on or off for only the routes you would like.
For example, in Laravel we may do the following...
namespace App\Http\Middleware; use Illuminate\Support\Facades\Config; class EnableSsr { protected $except = [ 'admin/*', 'portal/*', ]; public function handle($request, $next) { Config::set('inertia.ssr.enabled', ! $request->is($this->except)); return $next($request); } }
Sorry, something went wrong.
Thanks
No branches or pull requests
I have admin and public pages now I want to exclude all pages under admin folder and only SSR the pages under public folder.
The text was updated successfully, but these errors were encountered: