fix localhost
This commit is contained in:
@@ -2,11 +2,7 @@ import createClient from "openapi-fetch";
|
||||
import type { paths } from "../../generated/api";
|
||||
import { VITE_PUBLIC_URL } from "./env";
|
||||
|
||||
const baseUrl =
|
||||
VITE_PUBLIC_URL ||
|
||||
(typeof window !== "undefined"
|
||||
? window.location.origin
|
||||
: "http://localhost:3000");
|
||||
const baseUrl = VITE_PUBLIC_URL;
|
||||
|
||||
export const apiClient = createClient<paths>({
|
||||
baseUrl: baseUrl,
|
||||
|
||||
@@ -38,7 +38,6 @@ export const auth = betterAuth({
|
||||
},
|
||||
},
|
||||
secret: process.env.BETTER_AUTH_SECRET,
|
||||
trustedOrigins: ["http://localhost:5173", "http://localhost:3000"],
|
||||
session: {
|
||||
cookieCache: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user