next.js - 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的问题。
解决方案
推荐阅读
- pytorch - 使用 PyTorch 进行数据集量化
- angular - 如何自动设置 mat-option 元素宽度以适应选项值
- raspberry-pi - 信息亭模式下的 Chromium 88 数据泄漏
- android - 在 Room Migrations 中访问旧的 Room 数据库
- python - Safari 网络推送通知 APNS 返回 200 状态,但通知未发送到设备
- flutter - Flutter-Non-nullable instance field '{0}' must be initialized 错误
- scala - 使用maven执行场景时如何设置环境变量?
- c# - 如何让多个 Y 轴在 LiveCharts 中全部从 0 开始?
- r - 是否有 R 函数可以帮助我绘制单个节点的网络连接?
- arrays - 我需要得到预期的输出?我如何改进我的功能?C 社区的新手?