Skip to content

Commit 9fcc871

Browse files
committed
Add @web note to 4.x
1 parent 539238f commit 9fcc871

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/4.x/config/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ Out of the box, Craft provides these aliases—but you can override them or prov
315315
| `@web` | URL to the folder that contains the `index.php` file that was loaded for the request. | [CRAFT_WEB_URL](#craftweburl)
316316
| `@webroot` | Path to the folder that contains the `index.php` file that was loaded for the request. | [CRAFT_WEB_ROOT](#craftwebroot)
317317

318+
::: danger
319+
The `@web` alias is [determined automatically](kb:how-craft-determines-the-site-url), and generally should _not_ be overridden. Additionally, using `@web` in sites’ or asset volumes’ **Base URL** settings can lead to unpredictable behavior.
320+
:::
321+
318322
Aliases can be set to plain strings, or to the content of an environment variable. Keep in mind that **aliases are resolved recursively**, so you can define one based on another (including those whose values came from the environment):
319323

320324
```php

0 commit comments

Comments
 (0)