refactor: Update Vite configuration to use port 3000 as default
This commit is contained in:
parent
cdcd70464a
commit
716d2567bd
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export default defineConfig(({ mode }) => {
|
||||||
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";
|
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";
|
||||||
|
|
||||||
// Use environment variable to determine the UI server port
|
// Use environment variable to determine the UI server port
|
||||||
const port = Number(process.env.VITE_PORT) || 3002;
|
const port = Number(process.env.VITE_PORT) || 3000;
|
||||||
|
|
||||||
const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
|
const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
|
||||||
proxyObj[route] = {
|
proxyObj[route] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue