How to get page URL or hostname in NextJs Project?

后端 未结 0 609
旧时难觅i
旧时难觅i 2020-12-08 19:54

I want to get the page\'s full URL or site hostname like the image below on Static Site Generator.

I will try with window.location.hostname, but it doesn

相关标签:
回答
  • 消灭零回复
提交回复
热议问题