【发布时间】:2020-04-16 12:32:55
【问题描述】:
我正在使用 nextjs 在我的应用程序中启用 SSR。应用结构为:
- 组件 -
- component1.js
- 公开 -
- img1.png
- 页 -
- /订单 [订购].js
- [国家].js
- 联系我们.js
- review.js
如果我执行 'localhost:3000/contact-us/' ,它会将我路由到 [country].js。 我认为当我们执行 /contact-us/ 时,它会将其视为文件夹,但文件夹实际上并不存在,它需要进入该目录的第一页。
我尝试在下一个配置中使用 exportTrailingSlashes: false 但没有帮助。
【问题讨论】:
标签: next.js