You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-24 23:01:05 +03:00
Allow running the authentication service on a different base path
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
import { atom } from "jotai";
|
||||
import { atomWithLocation } from "jotai-location";
|
||||
|
||||
import appConfig, { AppConfig } from "../config";
|
||||
|
||||
import { Location, pathToRoute, Route, routeToPath } from "./routes";
|
||||
|
||||
export const appConfigAtom = atom<AppConfig>(
|
||||
typeof window !== "undefined" ? window.APP_CONFIG : { root: "/" },
|
||||
);
|
||||
export const appConfigAtom = atom<AppConfig>(appConfig);
|
||||
|
||||
const locationToRoute = (root: string, location: Location): Route => {
|
||||
if (!location.pathname || !location.pathname.startsWith(root)) {
|
||||
|
||||
Reference in New Issue
Block a user