upd
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
# VITE_COORD_URL=http://localhost:4000
|
||||
VITE_COORD_URL=https://coord.graff.tech
|
||||
VITE_COORD_URL=https://coord.graff.tech
|
||||
VITE_CRM_API_URL=https://crm.stream.graff.tech/api
|
||||
@@ -27,7 +27,7 @@ function SidebarTab1() {
|
||||
async function getSchedules() {
|
||||
try {
|
||||
const result: any[] = await ky
|
||||
.get(`http://localhost:3001/schedules/builds/${buildId}`)
|
||||
.get(`${import.meta.env.VITE_CRM_API_URL}/schedules/builds/${buildId}`)
|
||||
.json();
|
||||
|
||||
setSchedules(result);
|
||||
|
||||
@@ -44,7 +44,7 @@ function SidebarTab2() {
|
||||
try {
|
||||
const result: { [key: string]: any } = await ky
|
||||
.get(
|
||||
`http://localhost:3001/schedules/builds/${buildId}?date=${selectedDay.toISOString()}`
|
||||
`${import.meta.env.VITE_CRM_API_URL}/schedules/builds/${buildId}?date=${selectedDay.toISOString()}`
|
||||
)
|
||||
.json();
|
||||
|
||||
@@ -84,7 +84,7 @@ function SidebarTab2() {
|
||||
|
||||
const result: any[] = await ky
|
||||
.get(
|
||||
`http://localhost:3001/scheduled_sessions/builds/${buildId}?date=${selectedDay?.toISOString()}`
|
||||
`${import.meta.env.VITE_CRM_API_URL}/scheduled_sessions/builds/${buildId}?date=${selectedDay?.toISOString()}`
|
||||
)
|
||||
.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user