Next 有一个内置的 API 路由 https://nextjs.org/docs/api-routes/introduction
它使用 /pages/ api
是否可以将默认路径从 / api /*更改为/ myApi /* 之类的其他路径?
我正在考虑将它添加到 exportPathMap https://nextjs.org/docs/api-reference/next.config.js/exportPathMap
有什么建议?
next.js
next.js ×1