diff --git a/examples/ssr/astro.config.mjs b/examples/ssr/astro.config.mjs index f6aba20cef..70e06ea3ae 100644 --- a/examples/ssr/astro.config.mjs +++ b/examples/ssr/astro.config.mjs @@ -1,10 +1,10 @@ import { defineConfig } from 'astro/config'; import svelte from '@astrojs/svelte'; -import nodejs from '@astrojs/node'; +import deno from '@astrojs/deno'; // https://astro.build/config export default defineConfig({ - adapter: nodejs(), + adapter: deno(), integrations: [svelte()], vite: { server: { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 240157e475..5e93e69fd3 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@astrojs/svelte": "^0.0.2-next.0", - "@astrojs/node": "^0.0.2-next.0", + "@astrojs/deno": "^0.0.2-next.0", "astro": "^0.25.0-next.3", "concurrently": "^7.0.0", "lightcookie": "^1.0.25", diff --git a/examples/ssr/src/components/Header.astro b/examples/ssr/src/components/Header.astro index c4d925a5f7..469ec16829 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 = { items: [] };// await getCart(); const cartCount = cart.items.reduce((sum, item) => sum + item.count, 0); --- + +
+ +