summaryrefslogtreecommitdiff
path: root/examples/ssr/src/models/session.ts
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-03-29 08:18:11 -0400
committerGravatar GitHub <noreply@github.com> 2022-03-29 08:18:11 -0400
commitecbcc8c42cab4b043821bbc31574397fdbf9d481 (patch)
tree206c81382bfef18d8b6a390b24f6a8185f827c0e /examples/ssr/src/models/session.ts
parentf89dc5c04afbcc63636d2f63cdf7a92ebd80acc4 (diff)
downloadastro-ecbcc8c42cab4b043821bbc31574397fdbf9d481.tar.gz
astro-ecbcc8c42cab4b043821bbc31574397fdbf9d481.tar.zst
astro-ecbcc8c42cab4b043821bbc31574397fdbf9d481.zip
Make it deployable to Netlify (#2931)
Diffstat (limited to 'examples/ssr/src/models/session.ts')
-rw-r--r--examples/ssr/src/models/session.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/ssr/src/models/session.ts b/examples/ssr/src/models/session.ts
new file mode 100644
index 000000000..60ca8f1da
--- /dev/null
+++ b/examples/ssr/src/models/session.ts
@@ -0,0 +1,3 @@
+
+// Normally this would be in a database.
+export const userCartItems = new Map();
tar' /> Emanuele Stoppa 15-78/+279 2023-08-10chore: update after mergeGravatar Emanuele Stoppa 1-13/+18 2023-08-10[ci] formatGravatar bluwy 2-3/+6 2023-08-10Move hoisted script analysis optimization as experimental (#8011)Gravatar Bjorn Lu 6-38/+88 Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> 2023-08-10more efficient _routes.json for cloudflare integration (#7846)Gravatar Marco Schumacher 17-16/+242 * more efficient _routes.json for cloudflare integration * added tests * updated pnpm-lock.yaml * added changeset * cleaned up test * fix: convert window path separators * updated docs * handle more cases * Apply suggestions from code review Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * incorporate feedback from code review * used other pnpm version * better fallback for empty include array * adjust test case to changed fallback for empty include array * updated docs --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> 2023-08-09[ci] release (#8000)create-astro@3.1.12astro@2.10.4@astrojs/preact@2.2.2Gravatar Houston (Bot) 48-96/+97 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2023-08-09Support Bun by adjusting how `@babel/plugin-transform-react-jsx` is ↵Gravatar dave caruso 3-12/+15 imported. (#8007) * Support bun/other tooling that respects `__esModule` * Add changeset file 2023-08-09feat: remove @astrojs/image completely (#7922)Gravatar Erika 182-20267/+38 2023-08-09[ci] formatGravatar ElianCodes 1-14/+14 2023-08-09fixed image path and add markdown syntax in example (#7802)Gravatar Keshav Mohta 1-6/+113 Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Elian ☕️ <hello@elian.codes> 2023-08-09chore: merge from mainGravatar Emanuele Stoppa 1-0/+4 2023-08-09Remove nested JSON.stringify from props serialization (#7995)Gravatar Jany Belluz 4-29/+41 2023-08-09docs: Fix error link in markdoc (#8006)Gravatar 李瑞丰 1-1/+1 2023-08-09Fix examples check hang (#7998)Gravatar Bjorn Lu 4-5/+20 2023-08-09Preserve base slash when trailingSlash ignore (#7878)Gravatar Bjorn Lu 10-39/+42 2023-08-08fix: `EndpointOutput` type with encoding `'binary'` (#8003)Gravatar Juan Martín Seery 5-18/+28 * fix: `EndpointOutput` type with encoding `'binary'` * Changeset 2023-08-08Add shorthand for Starlight templates to `create astro` (#7993)Gravatar Chris Swithinbank 2-1/+9 * Add shorthand for Starlight templates to `create astro` * Update packages/create-astro/src/actions/template.ts * Update packages/create-astro/src/actions/template.ts --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> 2023-08-08chore: update prettier to `3.0` (#7957)Gravatar Emanuele Stoppa 12-47/+53 2023-08-08feat: new attribute scope style strategy (#7893)Gravatar Emanuele Stoppa 9-29/+101 2023-08-08chore: fix rebase issueGravatar Emanuele Stoppa 2-489/+555 2023-08-08Remove StreamingCompatibleResponse polyfill (#7981)Gravatar Bjorn Lu 3-82/+6 2023-08-08Remove undici dep (#7980)Gravatar Bjorn Lu 10-14/+9 2023-08-08Remove markdown component (#7931)Gravatar Bjorn Lu 88-1499/+10 2023-08-08Fix node test fail (#7950)Gravatar Bjorn Lu 14-17/+15 2023-08-08[ci] release (beta) (#7897)Gravatar Houston (Bot) 86-100/+783 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2023-08-08feat: change `compressHTML` default value to `true` (#7918)Gravatar Emanuele Stoppa 3-2/+15 Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> 2023-08-08feat: add noop service and make integrations that needs it use it (#7903)Gravatar Erika 5-9/+41 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> 2023-08-08feat: use external @astrojs/check (#7892)Gravatar Erika 6-520/+160 * feat: use @astrojs/check * fix: what happened in my rebase?? * nit: adjust with feedback 2023-08-08Refactor MDX components exports handling (#7904)Gravatar Bjorn Lu 4-7/+15 2023-08-08feat: make Sharp the default image service (#7908)Gravatar Erika 4-12/+22 * feat: make Sharp the default image service * chore: lockfile 2023-08-08feat: change default port to 4321 (#7874)Gravatar Emanuele Stoppa 75-101/+108 Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> 2023-08-08fix: update examples to use the new API of cookies (#7899)Gravatar Emanuele Stoppa 3-3/+3 2023-08-08ci: change release tag name (#7898)Gravatar Emanuele Stoppa 1-1/+1 2023-08-08chore: use workspace packages (#7896)Gravatar Emanuele Stoppa 2-2/+2 2023-08-08chore: use workspace packages (#7894)Gravatar Emanuele Stoppa 4-8/+8 2023-08-08Make Astro.cookies.get(key) return undefined (#7888)Gravatar Matthew Phillips 4-15/+35 2023-08-08chore: remove deleted packageGravatar Emanuele Stoppa 1-1/+0