mirror of
https://github.com/amir20/dozzle.git
synced 2026-06-23 04:10:12 +00:00
13 lines
334 B
TypeScript
13 lines
334 B
TypeScript
import { type App } from "vue";
|
|
import urql, { cacheExchange, fetchExchange, Client } from "@urql/vue";
|
|
import { withBase } from "@/stores/config";
|
|
|
|
export const client = new Client({
|
|
url: withBase("/api/graphql"),
|
|
exchanges: [cacheExchange, fetchExchange],
|
|
});
|
|
|
|
export const install = (app: App) => {
|
|
app.use(urql, client);
|
|
};
|