Added urql and client

This commit is contained in:
2025-11-27 18:15:48 -05:00
parent 2ba2cec399
commit 3a03bbc47b
4 changed files with 44 additions and 2 deletions

10
src/lib/urql.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Client, cacheExchange, fetchExchange } from "@urql/core";
const urql = new Client({
url: process.env.GRAPHQL_URL || "",
exchanges: [cacheExchange, fetchExchange]
});
console.log(`GRAPHQL_URL`, process.env.GRAPHQL_URL);
export default urql;