mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
Remove caveat about Astro.request
not being passed to components. (#1276)
This commit is contained in:
parent
6c3416ef44
commit
61e4f2cb1f
1 changed files with 0 additions and 2 deletions
|
@ -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. |
|
| `url` | `URL` | The URL of the request being rendered. |
|
||||||
| `canonicalURL` | `URL` | [Canonical URL][canonical] of the current page. |
|
| `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()`
|
||||||
|
|
||||||
`Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder.
|
`Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder.
|
||||||
|
|
Loading…
Reference in a new issue