@decocms/start 2.28.1 → 2.29.0

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.
@@ -147,10 +147,13 @@ export function decoVitePlugin() {
147
147
  });
148
148
 
149
149
  // Tunnel + daemon: connect local dev to admin.deco.cx
150
- // Activated when DECO_SITE_NAME is set (e.g. DECO_SITE_NAME=mysite vite dev)
150
+ // Activated only when both DECO_SITE_NAME and DECO_ENV_NAME are set.
151
+ // Omitting DECO_ENV_NAME runs Vite fully local (no tunnel registration),
152
+ // since DECO_SITE_NAME alone is also consumed by site builds via vite's
153
+ // `define` for `process.env.DECO_SITE_NAME` and shouldn't force a tunnel.
151
154
  const siteName = process.env.DECO_SITE_NAME;
152
- if (siteName) {
153
- const envName = process.env.DECO_ENV_NAME || "dev";
155
+ const envName = process.env.DECO_ENV_NAME;
156
+ if (siteName && envName) {
154
157
 
155
158
  // Daemon files are .ts and live inside node_modules. Node's
156
159
  // experimental strip-types refuses to transpile node_modules, so