feat: rebuild fiscal clone architecture and harden coolify deployment
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import { createAuthClient } from 'better-auth/react';
|
||||
import { resolveApiBaseURL } from '@/lib/runtime-url';
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001'
|
||||
baseURL: resolveApiBaseURL(process.env.NEXT_PUBLIC_API_URL),
|
||||
fetchOptions: {
|
||||
credentials: 'include'
|
||||
}
|
||||
});
|
||||
|
||||
export const { signIn, signUp, signOut, useSession } = authClient;
|
||||
|
||||
Reference in New Issue
Block a user