next13 react项目 setupProxy.js 不起作用?-灵析社区

winkkkkk9421

next13 构建的react项目 setupProxy.js不起作用了? 在src下和根目录下都配置了setupProxy.js都是不起作用 ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241102/1656399f1cfb468a9e91a73ea7da765a.png) ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241102/c107704d2cf0213d5bf850164c1ce16c.png) ![image.png](https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241102/4a553cd79cca680f98d8e1ab0a2e1c74.png)

阅读量:20

点赞量:0

问AI
脑洞大咖
// next.config.js module.exports = { async rewrites() { return [ { source: "/api/:path*", destination: "https://www.examole.com/:path*", }, ] } }