summaryrefslogtreecommitdiff
path: root/docs/dev.md
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-04-27 14:00:33 -0400
committerGravatar GitHub <noreply@github.com> 2021-04-27 14:00:33 -0400
commit41c64b30af7ed34c1a870b6f273a2889fa2df102 (patch)
tree5bbaf30bcb43ec5d4eb47e9188b639c3298c6f3b /docs/dev.md
parentdea1a6dfc9dec54034d2b872b4cd36c0174814c6 (diff)
downloadastro-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.md2
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>