You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-23 11:02:35 +03:00
Allow running the authentication service on a different base path
This commit is contained in:
@@ -18,6 +18,7 @@ import { cacheExchange } from "@urql/exchange-graphcache";
|
||||
import { refocusExchange } from "@urql/exchange-refocus";
|
||||
import { requestPolicyExchange } from "@urql/exchange-request-policy";
|
||||
|
||||
import appConfig from "./config";
|
||||
import type {
|
||||
MutationAddEmailArgs,
|
||||
MutationRemoveEmailArgs,
|
||||
@@ -130,7 +131,7 @@ const exchanges = [
|
||||
];
|
||||
|
||||
export const client = createClient({
|
||||
url: "/graphql",
|
||||
url: appConfig.graphqlEndpoint,
|
||||
// Add the devtools exchange in development
|
||||
exchanges: import.meta.env.DEV ? [devtoolsExchange, ...exchanges] : exchanges,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user