This commit is contained in:
Leo Wen
2025-01-22 21:53:43 -08:00
parent 4e25d8f15e
commit 8371f9c799
3 changed files with 6 additions and 3 deletions
BIN
View File
Binary file not shown.
+4 -1
View File
@@ -8,7 +8,9 @@
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview" "preview": "vite preview",
"predeploy": "bun run build",
"deploy": "gh-pages -d dist"
}, },
"dependencies": { "dependencies": {
"@apollo/client": "^3.12.6", "@apollo/client": "^3.12.6",
@@ -16,6 +18,7 @@
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"flowbite": "^2.5.2", "flowbite": "^2.5.2",
"flowbite-react": "^0.10.2", "flowbite-react": "^0.10.2",
"gh-pages": "^6.3.0",
"graphql": "^16.10.0", "graphql": "^16.10.0",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
+2 -2
View File
@@ -35,7 +35,7 @@ function App() {
async function handleSearch() { async function handleSearch() {
try { try {
var response = await fetch(`http://192.168.1.202:4000/search/?q=${query}`); var response = await fetch(`http://172.249.53.117:4000/search/?q=${query}`);
var data = await response.json(); var data = await response.json();
console.log(data); console.log(data);
setSyllabi(data); setSyllabi(data);
@@ -63,7 +63,7 @@ function App() {
formdata.append("email", email); formdata.append("email", email);
formdata.append("name", name); formdata.append("name", name);
fetch(`http://192.168.1.202:4000/create`, { fetch(`http://172.249.53.117:4000/create`, {
method: 'POST', method: 'POST',
body: formdata, body: formdata,
}) })