fix: change default port
Port change to make it easier to deploy to spaces
This commit is contained in:
parent
a70eaaecfd
commit
19af1e1996
5 changed files with 10 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { APIObjectType, sendAllProps } from '../../types/api/index';
|
||||
import axios, { AxiosResponse } from "axios";
|
||||
|
||||
const backendUrl = process.env.BACKEND || "http://localhost:5003";
|
||||
const backendUrl = process.env.BACKEND || "http://localhost:7860";
|
||||
|
||||
export async function getAll():Promise<AxiosResponse<APIObjectType>> {
|
||||
return await axios.get(`${backendUrl}/all`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue