diff options
author | 2021-04-27 14:00:33 -0400 | |
---|---|---|
committer | 2021-04-27 14:00:33 -0400 | |
commit | 41c64b30af7ed34c1a870b6f273a2889fa2df102 (patch) | |
tree | 5bbaf30bcb43ec5d4eb47e9188b639c3298c6f3b /docs/dev.md | |
parent | dea1a6dfc9dec54034d2b872b4cd36c0174814c6 (diff) | |
download | astro-41c64b30af7ed34c1a870b6f273a2889fa2df102.tar.gz astro-41c64b30af7ed34c1a870b6f273a2889fa2df102.tar.zst astro-41c64b30af7ed34c1a870b6f273a2889fa2df102.zip |
Move the `request` object from import.meta to Astro (#134)
* Move the `request` object from import.meta to Astro
This moves the `request` object to the Astro "global" (really just a render-level variable).
* Document Astro.request
Diffstat (limited to 'docs/dev.md')
-rw-r--r-- | docs/dev.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev.md b/docs/dev.md index 7b811d7d3..8057ddcd6 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -42,7 +42,7 @@ The 500 page will receive an `error` query parameter which you can access with: ``` --- -const error = import.meta.request.url.searchParams.get('error'); +const error = Astro.request.url.searchParams.get('error'); --- <strong>{error}</strong> |