Skip to content

Proxy api requests w/o a custom server #14057

Answered by Janpot
athrunsun asked this question in Show and tell
Discussion options

You must be logged in to vote

You can use custom routes for this:

rewrites: () => [
  { source: '/api/proxy/:path*', destination: 'http://localhost:5000/:path*' }
]

Replies: 8 comments 18 replies

Comment options

You must be logged in to vote
1 reply
@athrunsun
Comment options

Comment options

You must be logged in to vote
7 replies
@damonleelcx
Comment options

@mattvb91
Comment options

@peppermint-juli
Comment options

@jankoritak
Comment options

@cancan101
Comment options

Comment options

You must be logged in to vote
5 replies
@athrunsun
Comment options

@Janpot
Comment options

@athrunsun
Comment options

@dsauna
Comment options

@gfazioli
Comment options

Answer selected by timneutkens
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@edersonsilva
Comment options

@Brazuca228
Comment options

@anoushk1234
Comment options

Comment options

You must be logged in to vote
2 replies
@francemj
Comment options

@Linyan-ma
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment