Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove default loading indicator in Next.js

I'm using Next.js for a project and when I change the route this default loading shows up in the corner.

enter image description here

How can I remove it?

like image 677
nawkljbcoakjbco Avatar asked Dec 15 '25 05:12

nawkljbcoakjbco


1 Answers

You can disable the build loading indicator in the config by setting the devIndicators.buildActivity field to false.

// next.config.js

module.exports = {
    devIndicators: {
        buildActivity: false
    }
}

As pointed out by @Altareos, this indicator is only present in development mode and will not appear when building and running the app in production mode.

like image 148
juliomalves Avatar answered Dec 16 '25 18:12

juliomalves



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!