- graph, dotenv read

- graph, cors and secure header
- web, urql client basic setup
This commit is contained in:
2024-11-04 11:35:43 +05:30
parent 46c46a7e71
commit 45c318b897
22 changed files with 590 additions and 64 deletions

8
web/lib/gql/client.ts Normal file
View File

@@ -0,0 +1,8 @@
import { Client, cacheExchange, fetchExchange } from '@urql/svelte';
export function newClient(url: string) {
return new Client({
url,
exchanges: [ fetchExchange]
});
}