---
title: "Comment by Chirag Ramachandra on \"#6 Adding common code for all pages in Next.js - Delightful React\" | Hashnode"
description: "Hi Bhargav, just wanted to add that all the seo related can come in the _app.js file too right ? How about PWA in nextJS ?"
url: "https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f/comment/6007d489b2c54030097c518c"
---

[Discussion](https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f)

Comment [#6 Adding common code for all pages in Next.js - Delightful React](https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f)

[Chirag Ramachandra](https://hashnode.com/@ChiragRamachandra)

[Jan 20, 2021](https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f/comment/6007d489b2c54030097c518c)

Hi Bhargav, just wanted to add that all the seo related can come in the \_app.js file too right ? How about PWA in nextJS ?

[Bhargav Ponnapalli](https://hashnode.com/@codewithbhargav)

[Jan 20, 2021](https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f/comment/6007d489b2c54030097c518c#reply-6007d8c8094f2b30301de765)

Some of it can come in \_app.js. But you might also have to change \_document.js which is another file but mainly aimed at SSR.

I will talking about that in chapter 19 or 20 according to the current structure of my book. :)

Cheers!

[Chirag Ramachandra](https://hashnode.com/@ChiragRamachandra)

[Jan 20, 2021](https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f/comment/6007d489b2c54030097c518c#reply-6007fdc7b2c54030097c553f)

Thanks,[Bhargav Ponnapalli](https://hashnode.com/@imbhargav5) Could you also cover how to style the banner prompting to install as PWA ? I think there is very little literature around that as well.

[Bhargav Ponnapalli](https://hashnode.com/@codewithbhargav)

[Jan 20, 2021](https://hashnode.com/posts/6-adding-common-code-for-all-pages-in-nextjs-delightful-react/6007249d094f2b30301ddf7f/comment/6007d489b2c54030097c518c#reply-600808eb094f2b30301deb4f)

For sure . Will find a way to add it. [Chirag Ramachandra](https://hashnode.com/@ChiragRamachandra)
