diff options
author | 2022-03-29 07:35:03 -0400 | |
---|---|---|
committer | 2022-03-29 07:35:03 -0400 | |
commit | ecc6a4833f68eaf78bd5d619ff7c54b952c96b15 (patch) | |
tree | 95175d87fd2002ab441a968970512a1293c48874 /examples/ssr/src | |
parent | 030fd48bdd917206f32c78c88a3fe2a2d9191101 (diff) | |
download | astro-ecc6a4833f68eaf78bd5d619ff7c54b952c96b15.tar.gz astro-ecc6a4833f68eaf78bd5d619ff7c54b952c96b15.tar.zst astro-ecc6a4833f68eaf78bd5d619ff7c54b952c96b15.zip |
Implement the Astro.request RFC (#2913)
* Implement the Astro.request RFC
* Disable console warnings eslint
* Use our logger
* Adds a changeset
* Fix tests that depend on params, canonicalURL, URL
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Diffstat (limited to 'examples/ssr/src')
-rw-r--r-- | examples/ssr/src/pages/products/[id].astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ssr/src/pages/products/[id].astro b/examples/ssr/src/pages/products/[id].astro index 37fe7e0b4..317cea635 100644 --- a/examples/ssr/src/pages/products/[id].astro +++ b/examples/ssr/src/pages/products/[id].astro @@ -5,7 +5,7 @@ import AddToCart from '../../components/AddToCart.svelte'; import { getProduct } from '../../api'; import '../../styles/common.css'; -const id = Number(Astro.request.params.id); +const id = Number(Astro.params.id); const product = await getProduct(id); --- |