@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 +1 -1
- package/src/codegen.mjs +1 -1
- package/src/vite-inline.mjs +4 -0
package/package.json
CHANGED
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 ?? {}),
|
|
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,
|
package/src/vite-inline.mjs
CHANGED
|
@@ -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
|
},
|