Hi!
I have a nuxt3 project. I use the url as site.com/test-api/feed/300 and the following is written in the proxy settings:
'/test-api': { target: site2.com, changeOrigin: true, secure: false, rewrite: (path: string) => path.replace(/^\/test-api/, 'api') },
i get fault - TypeError [ERR_INVALID_URL]: Invalid URL
moreover, the proxy works correctly on the client. The problem is only from the server side. Thank you very much in advance for your help. This problem blocks further development. I will expect help
Hi! I have a nuxt3 project. I use the url as site.com/test-api/feed/300 and the following is written in the proxy settings:
'/test-api': { target: site2.com, changeOrigin: true, secure: false, rewrite: (path: string) => path.replace(/^\/test-api/, 'api') },
i get fault - TypeError [ERR_INVALID_URL]: Invalid URL
moreover, the proxy works correctly on the client. The problem is only from the server side. Thank you very much in advance for your help. This problem blocks further development. I will expect help