Skip to content

Commit 63ab20a

Browse files
committed
Update API URL configuration format.
Consolidate API URL settings by merging separate base, prefix, and version variables into a single backend URL. This change simplifies the API configuration process and ensures consistency across documentation. Make sure there are no trailing slashes and the correct protocol (http or https) is used.
1 parent 2a8a7a6 commit 63ab20a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Writerside/topics/gml-faq.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
следующим образом
2626
```
2727
# Адрес к Web Api
28-
NEXT_PUBLIC_BASE_URL=http://localhost:5000
29-
NEXT_PUBLIC_PREFIX_API=api
30-
NEXT_PUBLIC_VERSION_API=v1
28+
NEXT_PUBLIC_BACKEND_URL=http://localhost:5000/api/v1
3129
```
3230
> Внимание! Не должно быть ```/``` в конце адреса и выбран верный протокол ```http``` или ```https```
3331

Writerside/topics/server-install-from-source.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ SERVICE_TEXTURE_ENDPOINT=http://gml-web-skins:8085
8888

8989
```yaml
9090
# Адрес к Web Api
91-
NEXT_PUBLIC_BASE_URL=http://localhost:5000
92-
NEXT_PUBLIC_PREFIX_API=api
93-
NEXT_PUBLIC_VERSION_API=v1
91+
NEXT_PUBLIC_BACKEND_URL=http://localhost:5000/api/v1
9492
```
9593

9694
#### Шаг 5: Запуск проекта с использованием Docker

0 commit comments

Comments
 (0)