Setting up a proxy server

Hi everyone,

This question might sound a bit naive and I apologize in advance. What is the best way to set up a proxy to a backend app in the scripting blocks dev environment?

When using create-react-app I make the proxy in the package.json

"proxy": {
    "/api/projects": {
      "target": "http://localhost:3000"

or more recently using http-proxy-middleware and creating a setupProxy.js on my src folder.

const { createProxyMiddleware } = require(‘http-proxy-middleware’);

module.exports = function (app) {
      target: 'http://localhost:3000',
      changeOrigin: true,

I am not quite sure to set that when using the blocks. Thanks so much for your help!