@tokenoftrust/storefront-runner 2.2.125 → 2.2.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,12 +138,13 @@ export default defineConfig({
138
138
  "@astrojs/cloudflare/entrypoints/preview.js",
139
139
  ],
140
140
  },
141
- // The Cloudflare dev worker keeps its SSR module graph across Vite optimizer
142
- // turns. Prebundle Preact's renderer before that graph is loaded so it never
143
- // retains a URL for a superseded .vite/deps_ssr chunk.
141
+ // The renderer and islands must use the same Preact hook state during SSR.
142
+ // Keep these modules outside Vite's SSR prebundle so the renderer and each
143
+ // island resolve one shared instance.
144
144
  ssr: {
145
+ external: ["preact", "preact/hooks", "preact-render-to-string", "@astrojs/preact"],
145
146
  optimizeDeps: {
146
- include: ["@astrojs/preact/server.js"],
147
+ exclude: ["@astrojs/preact/server.js", "preact/hooks", "preact-render-to-string", "preact"],
147
148
  },
148
149
  },
149
150
  // Dev-only: let the dev server accept tenant Host headers so host-based
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "2.2.125",
3
+ "version": "2.2.126",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",