nus-apr / auto-code-rover

A project structure aware autonomous software engineer aiming for autonomous program improvement. Resolved 30.67% tasks (pass@1) in SWE-bench lite with each task costs less than $0.7.
Other
2.37k stars 236 forks source link

demo_vis port optimize , only 3000 port need expose out. #50

Closed stevensu1977 closed 1 month ago

stevensu1977 commented 1 month ago

When run demo_vis in docker , need expose 3000,5000 port , so I add API proxy in next.config.mjs , now you only need expose 3000 port for your browser.

source code

const nextConfig = {

async rewrites() {
    return [
            {
                    source: '/api/:path*',
                    destination: `http://localhost:5000/api/:path*`,
            },
    ]
},

};

stevensu1977 commented 1 month ago

Sorry , this PR have streaming issue , I close it