feat: add back edit page and fix profile settings

This commit is contained in:
trafficlunar 2026-04-18 18:25:10 +01:00
parent e81f054e3a
commit 63dbaf13fa
31 changed files with 1246 additions and 1292 deletions

View file

@ -12,7 +12,7 @@ export default function DeleteAccount() {
const [error, setError] = useState<string | undefined>(undefined);
const handleSubmit = async () => {
const response = await fetch("/api/auth/delete", { method: "DELETE" });
const response = await fetch(`${import.meta.env.VITE_API_URL}/api/auth/delete`, { method: "DELETE", credentials: "include" });
if (!response.ok) {
const { error } = await response.json();
setError(error);