Skip to content

Commit

Permalink
tweak URL for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
aliiyuu authored Aug 21, 2024
1 parent abf16e7 commit 07f3c35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function downloadCodebase() {
const apiURL = "https://syntaxsorcerer-backend.fly.dev";
const url = document.getElementById("codebase-url").value;

const response = await fetch(`${local}/api/download`, {
const response = await fetch(`${apiURL}/api/download`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -32,7 +32,7 @@ export async function deleteCodebase() {
const local = "http://localhost:3000";
const apiURL = "https://syntaxsorcerer-backend.fly.dev";

const response = await fetch(`${local}/api/delete`, {
const response = await fetch(`${apiURL}/api/delete`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down Expand Up @@ -135,7 +135,7 @@ export async function fetchChatGPTResponse(userInput) {
const apiURL = "https://syntaxsorcerer-backend.fly.dev";
const codebasePath = "../../codebases";

const response = await fetch(`${local}/api/chatgpt`, {
const response = await fetch(`${apiURL}/api/chatgpt`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -157,7 +157,7 @@ export async function fetchPineconeResponse(userInput) {
const local = "http://localhost:3000";
const apiURL = "https://syntaxsorcerer-backend.fly.dev";

const response = await fetch(`${local}/api/pinecone`, {
const response = await fetch(`${apiURL}/api/pinecone`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 07f3c35

Please sign in to comment.