79414703

Date: 2025-02-05 12:15:54
Score: 0.5
Natty:
Report link

You can add a key rewrite to avoid changing all routes

server: {
  proxy: {
    '/api': {
      target: 'http://127.0.0.1:5000',
      changeOrigin: true,
      secure: false,
      rewrite: (path) => path.replace(/^\/api/, ""),
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fran