🐛 (nocodb) Automatically ignore trailing slash for baseURL
Closes #1566
This commit is contained in:
@ -5,13 +5,15 @@ export const auth = {
|
|||||||
type: 'encryptedCredentials',
|
type: 'encryptedCredentials',
|
||||||
name: 'NocoDB account',
|
name: 'NocoDB account',
|
||||||
schema: option.object({
|
schema: option.object({
|
||||||
baseUrl: option.string.layout({
|
baseUrl: option.string
|
||||||
label: 'Base URL',
|
.layout({
|
||||||
isRequired: true,
|
label: 'Base URL',
|
||||||
helperText: 'Change it only if you are self-hosting NocoDB.',
|
isRequired: true,
|
||||||
withVariableButton: false,
|
helperText: 'Change it only if you are self-hosting NocoDB.',
|
||||||
defaultValue: defaultBaseUrl,
|
withVariableButton: false,
|
||||||
}),
|
defaultValue: defaultBaseUrl,
|
||||||
|
})
|
||||||
|
.transform((value) => value?.replace(/\/$/, '')),
|
||||||
apiKey: option.string.layout({
|
apiKey: option.string.layout({
|
||||||
label: 'API Token',
|
label: 'API Token',
|
||||||
isRequired: true,
|
isRequired: true,
|
||||||
|
Reference in New Issue
Block a user