Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Steevens's avatar

How to make a maintenance page with inertia.js?

I need to know how to make a maintenance page with inertia.js. I mean, when I building my maintenance page, I should do a view.blade.php and a vue page, then I do a route for the maintenance page, what left, what I have forget?, It doesn't works.

0 likes
9 replies
Sinnbeck's avatar

Why would the maintenance page be inertia? Just use a static html page. Imagine your page is under maintenance due to a vue error. Your page would not work

Steevens's avatar

@Sinnbeck Ok, Then the question is how I should to make the single page. While I making the view the styles from tailwindcss doesn't works, I run the command npm run watch and even then, the styles don't run so I thought I had to make a Vue component and route it, what should I do to make the tailwind styles work. Thanks for the help.

Snapey's avatar

@Steevens there is no need for vue/inertia, just check what path you have in the maintenance page for the css

Steevens's avatar

@Snapey Yes, that's true, I'm doing the maintenance page already, with the help of the course "Maintenance Mode Secrets" but this Maintenance styles page doesn't work, I don't know what is happen.

Snapey's avatar

@Steevens basics of being a web developer

  1. learn how to write static html pages

  2. discover browser developer tools and learn how to use them

Steevens's avatar

@Snapey How I can add styles from tailwindcss to the maintenance page?, that is the correctly question.

MohamedTammam's avatar
Level 51

You don't need Inertia for that.

Run php artisan vendor:publish and choose laravel-errors and then edit views/errors/503.balde.php.

Of course you need to add your style at the top in the <head>.

Or, if you already have a file for maintenance you can run php artisan down --render="your-view"

2 likes
Steevens's avatar

@MohamedTammam Thanks a lot. It was so easy, I put the command in the terminal and then I Select option tag 23, Laravel-error, and then this command create all errors views for Jetstream in inertia.

Please or to participate in this conversation.