Added urql and client
This commit is contained in:
10
src/lib/urql.ts
Normal file
10
src/lib/urql.ts
Normal 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;
|
||||
Reference in New Issue
Block a user