Base URL 指“基础网址/基准地址”:在网页或 API 中用作相对路径解析与拼接的起点(例如把 ./images/a.png 变成完整的 https://example.com/images/a.png)。在 API 文档里也常指某个服务的固定前缀,如 https://api.example.com/v1/。
/beɪs ˌjuː ɑːr ˈɛl/
Set the base URL to https://example.com/ before adding endpoints.
在添加各个端点之前,把基础网址设为 https://example.com/。
If the app is deployed behind a proxy, the base URL must reflect the public domain so that relative links resolve correctly across different routes.
如果应用部署在代理之后,基础网址必须使用对外公开的域名,这样相对链接才能在不同路由下被正确解析。
base 来自拉丁语 basis(“底座、基础”),经由法语进入英语,含义是“作为起点或支撑的部分”。URL 是 Uniform Resource Locator(统一资源定位符)的首字母缩写,源于互联网标准化术语。合在一起,base URL 就是“用于定位与拼接资源地址的基础起点”。