rename environment variable for vite server port
This commit is contained in:
parent
bb2b8fbb3d
commit
aa20ae5a56
1 changed files with 3 additions and 1 deletions
|
|
@ -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] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue