Next.js Gatsby/NextJS:按域分组页面
我试图理解如何迁移到我们的结构中的Gatsby/NextJSNext.js Gatsby/NextJS:按域分组页面,next.js,gatsby,Next.js,Gatsby,我试图理解如何迁移到我们的结构中的Gatsby/NextJS src ├── scripts ├── components ├── domains │ ├── ca.cdn.domain-1.com │ │ ├── global │ │ └── pages │ │ │ ├── page.html │ │ │ └── page-2.html │ ├── m.cdn.domain-2.de │ │ ├── global │ │ └──
src
├── scripts
├── components
├── domains
│ ├── ca.cdn.domain-1.com
│ │ ├── global
│ │ └── pages
│ │ │ ├── page.html
│ │ │ └── page-2.html
│ ├── m.cdn.domain-2.de
│ │ ├── global
│ │ └── pages
│ │ │ ├── page.html
│ │ │ └── page-2.html
page.html文件可以有不同的html模板,但共享src
中的一些通用组件。
目前,我们使用Gulp为每个域生成静态页面。今天试用了盖茨比,页面只能在src
文件夹中。关于如何在1 repo中使用多个域的Gatsby/NextJS有什么建议吗
我还更详细地描述了NextJS的问题