From 65b76822d04f0a893c2e35a2409757ee9eca535d Mon Sep 17 00:00:00 2001 From: ethanf Date: Sat, 12 Oct 2024 01:44:23 -0500 Subject: [PATCH] chore: commit for remote --- package.json | 2 +- src/pages/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c68859b..65d983d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "deno task dev:api & deno task dev:vite", "dev:api": "deno run --allow-env --allow-read --allow-net api/main.ts", - "dev:vite": "deno run -A npm:vite", + "dev:vite": "deno run -A npm:vite --host", "build": "tsc -b && vite build", "serve": "deno task build && deno task dev:api", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3251d94..80c92ab 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -38,7 +38,7 @@ export default function Index() { const handleLogin = async () => { try { - const response = await fetch("http://localhost:8000/auth/login"); + const response = await fetch("/auth/login"); if (!response.ok) { throw new Error("Failed to fetch authorization URL"); }