mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 01:49:51 +08:00
feat: modify prefixUrl in params (#1335)
This commit is contained in:
@@ -21,7 +21,6 @@ const profileTarget = {
|
|||||||
stage: '',
|
stage: '',
|
||||||
pro: 'http://pathfinder.affine.pro',
|
pro: 'http://pathfinder.affine.pro',
|
||||||
local: '127.0.0.1:3000',
|
local: '127.0.0.1:3000',
|
||||||
rem: 'stage.affine.pro',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getRedirectConfig = profile => {
|
const getRedirectConfig = profile => {
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ if (typeof window === 'undefined') {
|
|||||||
} else {
|
} else {
|
||||||
console.warn('serverAPI is not a valid URL', config.serverAPI);
|
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);
|
const bareAuth = createBareClient(prefixUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user