@ecomiq/storefront 2.0.14 → 2.0.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecomiq/storefront",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "Micro framework SSR de Ecomiq para storefronts. Páginas, datos y deploy sin configurar nada.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/codegen.mjs CHANGED
@@ -270,7 +270,7 @@ export async function generateApp({ cwd, appDir, frameworkRoot, config }) {
270
270
  },
271
271
  },
272
272
  ...(config.deploy?.routes ? { routes: config.deploy.routes } : {}),
273
- vars: {...(config.env ?? {}), BETTER_AUTH_URL: "localhost,localhost:*,127.0.0.1,127.0.0.1:*,*.ecomiq.app,ecomiq.app,*juanpablocs.workers.dev"},
273
+ vars: {...(config.env ?? {}), BETTER_AUTH_TRUSTED_HOSTS: "localhost,localhost:*,127.0.0.1,127.0.0.1:*,*.ecomiq.app,ecomiq.app,*.juanpablocs.workers.dev,*.aecca.workers.dev"},
274
274
  },
275
275
  null,
276
276
  2,
@@ -223,6 +223,10 @@ export function createViteConfig({ appDir, config, projectRoot, runtime }) {
223
223
  },
224
224
  },
225
225
  server: {
226
+ // `true` → escucha en 0.0.0.0 y muestra Network URL (IP local), no solo localhost.
227
+ // Override: `dev.host: false | 'localhost' | string` en ecomiq.config.
228
+ host: config?.dev?.host ?? true,
229
+ allowedHosts: config?.dev?.host ?? true,
226
230
  fs: { allow },
227
231
  ...(resolvedHttps.https ? { https: resolvedHttps.https } : {}),
228
232
  },