Closed Blemming closed 2 years ago
Is it possible to have multiple proxy targets using this module ?
In the nuxt 2 proxy module, the proxy option takes either an array of configs or an object. ie:
export default defineNuxtConfig({ proxy:[ { target: 'http://api1.domain.com', pathFilter: [ '/api/v1/**' ] }, { target: 'http://api2.domain.com', pathFilter: [ '/api/v2/**' ] } ] })
You are right, this module only accepts a single target. I’ll add that feature.
https://github.com/wobsoriano/nuxt-proxy/releases/tag/v0.2.0
Is it possible to have multiple proxy targets using this module ?
In the nuxt 2 proxy module, the proxy option takes either an array of configs or an object. ie: