Compare commits
No commits in common. "21910eca416d4a413c9e84795965edeffb202c22" and "dfef859ede0257b2002be1a1b51556aa9a18d0f5" have entirely different histories.
21910eca41
...
dfef859ede
2 changed files with 38 additions and 42 deletions
|
|
@ -18,8 +18,7 @@ const app = new Elysia()
|
||||||
.use(statsApp)
|
.use(statsApp)
|
||||||
.use(partyApp)
|
.use(partyApp)
|
||||||
.use(partyAnalysisApp)
|
.use(partyAnalysisApp)
|
||||||
.use(partySocketApp)
|
.use(partySocketApp),
|
||||||
.get("/", () => ({ ok: true })),
|
|
||||||
)
|
)
|
||||||
.listen(4000);
|
.listen(4000);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,14 +30,11 @@ export const getSession = createServerFn({ method: "GET" }).handler(
|
||||||
process.env.VITE_BETTER_AUTH_URL ??
|
process.env.VITE_BETTER_AUTH_URL ??
|
||||||
import.meta.env.VITE_BETTER_AUTH_URL ??
|
import.meta.env.VITE_BETTER_AUTH_URL ??
|
||||||
headers.get("origin") ??
|
headers.get("origin") ??
|
||||||
"http://localhost:3000";
|
"http://127.0.0.1:3000";
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
new URL("/api/auth/get-session", resolvedBaseUrl),
|
new URL("/api/auth/get-session", resolvedBaseUrl),
|
||||||
{ headers },
|
{ headers },
|
||||||
).catch((e) => {
|
);
|
||||||
console.error(e);
|
|
||||||
return { ok: false } as const;
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue