Skip to content
Discussion options

You must be logged in to vote

@cseas You should be able to leverage the upcoming custom routes feature to achieve this:

  rewrites: () => [
    { source: '/my-api-route', destination: '/api/my-api-route' },
  ]

Replies: 2 comments 5 replies

Comment options

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

Answer selected by Janpot
Comment options

You must be logged in to vote
4 replies
@Janpot
Comment options

@pratheekhegde
Comment options

@dsauna
Comment options

@kostia1st
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #14634 on July 29, 2020 06:45.