rename environment variable for vite server port

This commit is contained in:
Dave Morris 2023-08-08 20:25:27 -05:00
commit aa20ae5a56

View file

@ -5,7 +5,9 @@ const apiRoutes = ["^/api/v1/", "/health"];
// Use environment variable to determine the target.
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";
const port = process.env.VITE_PROXY_PORT || 3000;
// Use environment variable to determine the UI server port
const port = process.env.VITE_PORT || 3000;
const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
proxyObj[route] = {