Attempt trigger process call server side
This commit is contained in:
parent
73bf7f3d79
commit
a62e39a776
8 changed files with 21 additions and 16 deletions
|
@ -4,7 +4,7 @@ import { useState } from 'react';
|
|||
import Lightbox, { GenericSlide, VideoSlide } from 'yet-another-react-lightbox';
|
||||
import 'yet-another-react-lightbox/styles.css';
|
||||
import { Message } from './ChatWindow';
|
||||
import process from 'process';
|
||||
import { getServerEnv } from '@/lib/serverEnvironment';
|
||||
|
||||
type Video = {
|
||||
url: string;
|
||||
|
@ -48,7 +48,7 @@ const Searchvideos = ({
|
|||
const chatModel = localStorage.getItem('chatModel');
|
||||
|
||||
const res = await fetch(
|
||||
`${process.env.BACKEND_API_URL}/videos`,
|
||||
`${getServerEnv("BACKEND_API_URL")}/videos`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue