feat: working user auth on deployment #1

Merged
ethanf merged 6 commits from feature into main 2024-11-09 16:45:10 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 65b76822d0 - Show all commits

View File

@ -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",

View File

@ -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");
}