Proxy in Docusaurus

  Kiến thức lập trình

I have a website It uses facebook Docusaurus as frontend, and calls an external backend in nodejs and mongodb.

Now, I would like to enable links like When a user opens that link in a browser, it will write a record to the backend database to specify that the user clicked that link at what time, then be redirected to

I don’t want to create a webpage on the to do so, because that will display a webpage for a short period of time.

Does anyone know how to enable this? For instance, how to set up a proxy in Docusaurus to directly redirect to which will save the record and undertake the redirection?