1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-12 20:31:51 +00:00

Use runtime config

This commit is contained in:
Jonathan Adeline 2023-08-07 11:29:29 +00:00
parent eb4d82ee10
commit 0af095785c
46 changed files with 131 additions and 159 deletions

View file

@ -15,7 +15,7 @@
<div class="api-docs__right">
<APIDocsExample
:value="value"
:url="$env.PUBLIC_BACKEND_URL"
:url="$config.PUBLIC_BACKEND_URL"
:include-user-fields-checkbox="false"
type=""
@input="$emit('input', $event)"

View file

@ -75,7 +75,7 @@
<div class="api-docs__right">
<APIDocsExample
:value="value"
:url="$env.PUBLIC_BACKEND_URL"
:url="$config.PUBLIC_BACKEND_URL"
type=""
:response="{
error: 'ERROR_NO_PERMISSION_TO_TABLE',

View file

@ -71,7 +71,7 @@ export default {
},
methods: {
getFieldsURL(table) {
return `${this.$env.PUBLIC_BACKEND_URL}/api/database/fields/table/${table.id}/`
return `${this.$config.PUBLIC_BACKEND_URL}/api/database/fields/table/${table.id}/`
},
/**
* Generates a sample field list response based on the available fields of the table.

View file

@ -15,7 +15,7 @@
class="api-docs__content"
:content="
$t('apiDocsUploadFile.description', {
PUBLIC_BACKEND_URL: `${$env.PUBLIC_BACKEND_URL}`,
PUBLIC_BACKEND_URL: `${$config.PUBLIC_BACKEND_URL}`,
})
"
/>

View file

@ -15,7 +15,7 @@
class="api-docs__content"
:content="
$t('apiDocsUploadFileViaURL.description', {
PUBLIC_BACKEND_URL: `${$env.PUBLIC_BACKEND_URL}`,
PUBLIC_BACKEND_URL: `${$config.PUBLIC_BACKEND_URL}`,
})
"
/>