aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/(static)/login/+page.server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts
index 740f02d8..975dab5d 100644
--- a/src/routes/(static)/login/+page.server.ts
+++ b/src/routes/(static)/login/+page.server.ts
@@ -1,5 +1,6 @@
import { fd, get, login } from "$lib/utils";
import { fail, redirect } from "@sveltejs/kit";
+import { PUBLIC_COINOS_URL } from "$env/static/public";
export const load = async ({ parent }) => {
const { user } = await parent();
@@ -34,7 +35,7 @@ export const actions = {
const maxAge = 380 * 24 * 60 * 60;
- const res = await fetch("/api/nostrLogin", {
+ const res = await fetch(`${PUBLIC_COINOS_URL}/nostrLogin`, {
method: "POST",
body: JSON.stringify({ id, event }),
headers: {