Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell if a website is using next.js?

It's easy to tell if a website uses ReactJS, by using the React Developer Tools.

However, I know a website that uses ReactJS and Server Side Rendering (the whole page is built with React components, but the page source contains the whole HTML). Is it possible to tell if this website uses Next.js in particular for SSR?

Does Next.js leave any trace detectable on the front-end?

like image 406
BenMorel Avatar asked Dec 23 '22 15:12

BenMorel


2 Answers

If you are seeing content is wrapped with id="__next", this website use next.js

like uber

enter image description here

and like netflix

enter image description here

like image 89
msefer Avatar answered Dec 30 '22 00:12

msefer


By default, Next.js sets the X-Powered-By header to Next.js. So if you check Chrome's devtools for a page, you can check to see if this header exists.

Note: Developers can opt-out of including this header. So if the header does not exist, it is not evidence that the website does not use Next.js

enter image description here

like image 32
Nick Avatar answered Dec 30 '22 02:12

Nick