feat: modify prefixUrl in params (#1335)

This commit is contained in:
Himself65
2023-03-06 14:59:49 -06:00
committed by GitHub
parent a3e825c216
commit 98ccf17196
2 changed files with 3 additions and 1 deletions

View File

@@ -21,7 +21,6 @@ const profileTarget = {
stage: '',
pro: 'http://pathfinder.affine.pro',
local: '127.0.0.1:3000',
rem: 'stage.affine.pro',
};
const getRedirectConfig = profile => {

View File

@@ -15,6 +15,9 @@ if (typeof window === 'undefined') {
} else {
console.warn('serverAPI is not a valid URL', config.serverAPI);
}
} else {
const params = new URLSearchParams(window.location.search);
params.get('prefixUrl') && (prefixUrl = params.get('prefixUrl') as string);
}
const bareAuth = createBareClient(prefixUrl);