我正在构建一个具有https://[sub.domain.ext]/[language]/articles/[slug]结构的站点,但是它将在不同的域上有不同的内容(不同的主机名)。我不想求助于使用getServerSideProps的服务器端呈现(性能更慢,如果内容很少改变的话,就没有必要)。我可以以某种方式使用getStaticProps/getStaticPaths来生成静态站点吗?import React from
在我的next.js应用程序中,除了动态路由之外,语言环境的改变效果很好。在浏览器地址栏中,我确实得到了从http://localhost:3000/client/home/profile到http://localhost:3000/de/client/home/profile'
import dynamic from 'next/dynamic