The easiest and quickest trick I used was removing the router, layout, or pages from the root file and deploying it again. You can follow the steps below based on what kind React app you are using.
Next 13
- Go to
app.jsx
or app.tsx
file.
Next 14
- Go to root
layout.tsx
or layout.jsx
file.
Vite or CRA React app
- Go to
App.tsx
or main.tsx
file.
Follow the steps below after choosing the step 1.
based on the type of React app you're using👇👇👇
- Replace the
return ( ... )
with whatever you like. e.g. return (<div>Under maintenance</div>)
- Push your changes and newly deployed release will have nothing but a a div with text "Under maintenance" ✅