Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Next.js Gatsby/NextJS:按域分组页面_Next.js_Gatsby - Fatal编程技术网

Next.js Gatsby/NextJS:按域分组页面

Next.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 │ │ └──

我试图理解如何迁移到我们的结构中的Gatsby/NextJS

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的问题