Merge pull request #961 from automatisch/use-custom-server-in-ntfy
fix(ntfy): use given server URL instead of default
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { TBeforeRequest } from '@automatisch/types';
|
import { TBeforeRequest } from '@automatisch/types';
|
||||||
|
|
||||||
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
|
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
|
||||||
if ($.auth.data.apiBaseUrl) {
|
if ($.auth.data.serverUrl) {
|
||||||
requestConfig.baseURL = $.auth.data.apiBaseUrl as string;
|
requestConfig.baseURL = $.auth.data.serverUrl as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($.auth.data?.username && $.auth.data?.password) {
|
if ($.auth.data?.username && $.auth.data?.password) {
|
||||||
|
Reference in New Issue
Block a user