elyface / elyface-SSR

A react and Nextjs based, search-indexed SSR boilerplate and starter kits for publishers and news websites integrated with Blupoint CMS.
Other
0 stars 1 forks source link

Google AMP - Nextjs entegrasyonu #20

Open oyilmaztekin opened 5 years ago

oyilmaztekin commented 5 years ago

Google AMP ile ilgili olarak daha önce yaşadığımız problemleri buradan konuşabiliriz.

zekpehlivan commented 5 years ago

AMP olayı ;

https://www.ampproject.org/

AMP Sayfa yapısı ;

http://www.haberiyakala.com/seyma-subasi-yazar-oluyor-564506-haber-amp

view-source:http://www.haberiyakala.com/seyma-subasi-yazar-oluyor-564506-haber-amp

Kodunda dikkat edersen css vs. hepsi sayfa içinde yazıyor. Böylece google sayfayı daha hızlı okuyabiliyor.

Sen daha iyilerini bulursunda ben yinede örnek atayım sana;

https://www.npmjs.com/package/react-amp-template

oyilmaztekin commented 5 years ago

The incoming request should be checked via User-agent if it is mobile or desktop and the user must be redirected by express router to mobile domain or desktop such as m.domain.com or just domain.com. Each one has a different HTML server-side will be sending different HTML for each domain. One of them will be involved AMP codes or PWA and the other one will be involved NextJS codes.