mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: modify prefixUrl in params (#1335)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user