首页 > 解决方案 > Gatsby/NextJS:按域分组页面

问题描述

我正在尝试了解如何将我们的结构迁移到 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 为每个域生成静态页面。今天尝试了 Gatsby,页面只能在src文件夹中。关于如何在 1 个 repo 中使用具有多个域的 Gatsby/NextJS 有什么建议吗?

我还更详细地描述了NextJS的问题。

标签: next.jsgatsby

解决方案


推荐阅读