[FA-18] Frontend bootstrapped
This commit is contained in:
8
fictionarchive-web/src/apolloClient.ts
Normal file
8
fictionarchive-web/src/apolloClient.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'
|
||||
|
||||
const uri = import.meta.env.VITE_GRAPHQL_URI ?? 'https://localhost:5001/graphql'
|
||||
|
||||
export const apolloClient = new ApolloClient({
|
||||
link: new HttpLink({ uri }),
|
||||
cache: new InMemoryCache(),
|
||||
})
|
||||
Reference in New Issue
Block a user