【发布时间】:2019-05-04 06:14:13
【问题描述】:
我尝试获取一些子页面,例如
- example.com/tests/project1
- example.com/tests/project2
在 nextjs https://nextjs.org/
我能够创建像
这样的页面- example.com/page1
- example.com/page2
通过把页面像
page1.js
在页面“文件夹”中,但我如何创建子页面,如
- example.com/tests/page1
- example.com/tests/page2
我尝试在 Pages 文件夹中创建子文件夹,但这不起作用并输出错误。
非常感谢您的帮助
【问题讨论】:
标签: node.js reactjs react-native next.js