Repo Added
|
Files
59
|
Badge
README BADGES
|
push
github
Bump astro from 5.0.3 to 5.1.0 in /website in the npm_and_yarn group (#329) Bumps the npm_and_yarn group in /website with 1 update: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro). Updates `astro` from 5.0.3 to 5.1.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/withastro/astro/releases">astro's releases</a>.</em></p> <blockquote> <h2>astro@5.1.0</h2> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/withastro/astro/pull/12441">#12441</a> <a href="https://github.com/withastro/astro/commit/b4fec3c7d"><code>b4fec3c</code></a> Thanks <a href="https://github.com/ascorbic"><code>@​ascorbic</code></a>! - Adds experimental session support</p> <p>Sessions are used to store user state between requests for server-rendered pages, such as login status, shopping cart contents, or other user-specific data.</p> <pre lang="astro"><code>--- export const prerender = false; // Not needed in 'server' mode const cart = await Astro.session.get('cart'); --- <p><a href="/checkout">🛒 {cart?.length ?? 0} items</a> </code></pre></p> <p>Sessions are available in on-demand rendered/SSR pages, API endpoints, actions and middleware. To enable session support, you must configure a storage driver.</p> <p>If you are using the Node.js adapter, you can use the <code>fs</code> driver to store session data on the filesystem:</p> <pre lang="js"><code>// astro.config.mjs { adapter: node({ mode: 'standalone' }), experimental: { session: { // Required: the name of the unstorage driver driver: "fs", }, }, } </code></pre> <p>If you are deploying to a serverless environment, you can use drivers such as <code>redis</code>, <code>netlify-blobs</code>, <code>vercel-kv</code>, or <code>cloudflare-kv-binding</code> and optionally pass additional configuration options.</p> <p>For more information, including using the session... (continued)
2202 of 2736 relevant lines covered (80.48%)
0.8 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|