previewDeploy: node_build-Autodetect fuer App-Repos + Build-Output-Erkennung
- runDeploy: Repos mit package.json-build-Script ohne index.html werden automatisch als node_build gebaut (Expo/Vite/React zeigen sonst nur den Platzhalter); Build-Fehler fallen auf static+Platzhalter zurueck - deployNodeBuild: npm-ci-Fallback auf npm install, Output-Erkennung dist/build/out/web-build, maxBuffer+Timeout - updateWebsiteProject: bestehenden type/index aus .webklar-preview.json erhalten statt bei jedem Edit auf static zurueckzusetzen Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -432,9 +432,20 @@ export async function updateWebsiteProject(projectId, { projectName, subdomain,
|
||||
/* Default main */
|
||||
}
|
||||
|
||||
// Deploy-Typ (z.B. node_build) und index-Unterordner aus der vorhandenen
|
||||
// Repo-Config uebernehmen - sonst wuerde jedes Bearbeiten im Portal
|
||||
// App-Projekte (Expo/Vite/React) wieder auf "static" zuruecksetzen.
|
||||
let existingCfg = null
|
||||
try {
|
||||
existingCfg = await fetchPreviewConfig(repoFullName, branch)
|
||||
} catch {
|
||||
/* keine bestehende Config -> Defaults */
|
||||
}
|
||||
|
||||
const previewConfig = {
|
||||
enabled: hasWebsite,
|
||||
type: 'static',
|
||||
type: existingCfg?.type || 'static',
|
||||
...(existingCfg?.index ? { index: existingCfg.index } : {}),
|
||||
branch,
|
||||
displayName: nextName,
|
||||
templateName: doc.templateName || config.gitea.templateRepo,
|
||||
|
||||
Reference in New Issue
Block a user