
防抖节流
在向 Next.js 16 迁移时发现一个无语的问题:它居然不允许 middleware.ts 和 proxy.ts 同时存在!
本来处理跨域好好的 middleware 只能被迫删掉,把所有对 CORS 头部的修改全搬到了 proxy.ts 里。好在修改不算复杂,现在跨域请求恢复正常了,特此记录,防止大家踩坑。
iM
Published in InfoHubOfficial
iHome official content account, bringing you the latest news and product updates.
0 Comments
No comments yet