Runner: index.html-Rueckfall wie bisheriger Deploy (Kandidat/Platzhalter/Unterordner)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
54f307d12a
commit
8a028ce75a
7 files changed
+294
-10
No files matched your search
@@ -50,7 +50,8 @@ export function detectProject(files, { mode, index, previewJson } = {}) {
|
||||
const devPort = Number.isInteger(pj.devPort) && pj.devPort >= 1024 && pj.devPort <= 65535 ? pj.devPort : DEFAULT_PORT;
|
||||
const outputDirs = safeRel(pj.output) ? [pj.output] : [...DEFAULT_OUTPUTS];
|
||||
const indexFile = [index, pj.index].find(safeRel) || 'index.html';
|
||||
const hasIndex = files.has(indexFile);
|
||||
// index darf Datei ODER (wie im bisherigen Deploy) Unterordner mit index.html sein
|
||||
const hasIndex = files.has(indexFile) || files.has(`${indexFile.replace(/\/+$/, '')}/index.html`);
|
||||
const hasBuild = hasScript(scripts, 'build');
|
||||
const hasDev = hasScript(scripts, 'dev');
|
||||
const m = mode === 'build' || mode === 'dev' ? mode : 'auto';
|
||||
|
||||
Reference in new issue
Block a user