【发布时间】:2019-12-10 11:07:07
【问题描述】:
当我使用 npm run start for cart 页面开始我的下一个项目时,我得到了 http://localhost:3000/cart 但我想要的是 cart.js 是通过 http://localhost:3000/myprojectname/cart 访问我尝试在 next.config.js 中使用 set exportpathmap 它在 npm run dev 中运行良好,但是当我使用 npm run start 启动程序时,它不能像我预期的那样工作我怎样才能获得这样的 URL 路径 http://localhost:3000/myprojectname/cart 而不是 http://localhost:3000/cart 用于购物车页面
【问题讨论】: