Skip to content

Commit 8183e08

Browse files
committed
Add static provider component warning
1 parent 0e20cd5 commit 8183e08

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Writerside/boson.tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
<toc-element topic="os-info.md" />
5555
<toc-element topic="cpu-info.md" />
5656
<toc-element topic="weak-types.md" />
57+
<toc-element topic="static-files.md" />
5758
</toc-element>
5859
<toc-element toc-title="Integrations">
59-
<toc-element topic="static-files.md" />
6060
<toc-element topic="symfony-adapter.md"
6161
toc-title="Symfony HTTP" />
6262
<toc-element topic="laravel-adapter.md"

Writerside/topics/integrations/static-files.md renamed to Writerside/topics/components/static-files.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ $app->on(function (SchemeRequestReceived $e) use ($static): void {
5656

5757
$app->webview->url = 'static://localhost/example/image.png';
5858
```
59+
60+
<warning>
61+
Please note that the file search is performed by the path from the URL,
62+
excluding the host, scheme, etc. Thus, the file that will be requested at
63+
the address <code>scheme://HOST/path/to/file.png</code> must be located in
64+
<code>/public/path/to/file.png</code>.
65+
</warning>

0 commit comments

Comments
 (0)