diff options
author | 2021-08-31 12:58:52 -0500 | |
---|---|---|
committer | 2021-08-31 13:58:52 -0400 | |
commit | 61e4f2cb1fd74e9ef3122e5d9e974df6ba7eee29 (patch) | |
tree | 782716c4054837223da96d36201637c542157b02 /docs/src | |
parent | 6c3416ef44c76afc75a89d735f8f39347be0e5a8 (diff) | |
download | astro-61e4f2cb1fd74e9ef3122e5d9e974df6ba7eee29.tar.gz astro-61e4f2cb1fd74e9ef3122e5d9e974df6ba7eee29.tar.zst astro-61e4f2cb1fd74e9ef3122e5d9e974df6ba7eee29.zip |
Remove caveat about `Astro.request` not being passed to components. (#1276)
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/pages/reference/api-reference.md | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index a5a94f9a1..046971925 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -58,8 +58,6 @@ const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of po | `url` | `URL` | The URL of the request being rendered. | | `canonicalURL` | `URL` | [Canonical URL][canonical] of the current page. | -⚠️ Temporary restriction: this is only accessible in top-level pages and not in sub-components. - ### `Astro.resolve()` `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder. |