fix: bug
This commit is contained in:
@@ -2,4 +2,5 @@ import { treaty } from '@elysiajs/eden';
|
||||
import type { App } from '../backend/api';
|
||||
|
||||
// Create a single client instance
|
||||
export const client = treaty<App>('localhost:3000');
|
||||
const domain = typeof window !== 'undefined' ? window.location.host : 'localhost:3000';
|
||||
export const client = treaty<App>(domain);
|
||||
|
||||
Reference in New Issue
Block a user