diff options
author | 2022-03-29 09:17:49 -0400 | |
---|---|---|
committer | 2022-03-29 09:17:49 -0400 | |
commit | 7fd49f1887052b4822dc951258840da5d7a9b72b (patch) | |
tree | 7bc74a67dbf7019ee46520dbf107e0b38c15a255 /examples/ssr/src/components/Header.astro | |
parent | 9fa013b4fa04dc65b9abd75d75865bcbfd609170 (diff) | |
download | astro-7fd49f1887052b4822dc951258840da5d7a9b72b.tar.gz astro-7fd49f1887052b4822dc951258840da5d7a9b72b.tar.zst astro-7fd49f1887052b4822dc951258840da5d7a9b72b.zip |
Make the SSR example infer the origin (#2932)
Diffstat (limited to 'examples/ssr/src/components/Header.astro')
-rw-r--r-- | examples/ssr/src/components/Header.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ssr/src/components/Header.astro b/examples/ssr/src/components/Header.astro index c4d925a5f..426fb4be5 100644 --- a/examples/ssr/src/components/Header.astro +++ b/examples/ssr/src/components/Header.astro @@ -3,7 +3,7 @@ import TextDecorationSkip from './TextDecorationSkip.astro'; import Cart from './Cart.svelte'; import { getCart } from '../api'; -const cart = await getCart(); +const cart = await getCart(Astro.request); const cartCount = cart.items.reduce((sum, item) => sum + item.count, 0); --- <style> |