@speed.press/kit
Advanced tools
+1
-1
| { | ||
| "name": "@speed.press/kit", | ||
| "version": "1.7.0", | ||
| "version": "1.7.1", | ||
| "description": "Convert WordPress sites into pixel-faithful Astro frontends", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -383,18 +383,17 @@ import { mkdir, writeFile, copyFile, readdir } from 'fs/promises'; | ||
| async function writeDockerCompose(outDir) { | ||
| // xCloud's Docker-from-Git deploy is Compose-based (compose file at repo | ||
| // root + a host port >= 1024 for its reverse proxy). No volume over | ||
| // /var/www/html: a named volume would keep serving the first build's pages | ||
| // after every redeploy. | ||
| const content = `services: | ||
| astro: | ||
| site: | ||
| build: . | ||
| ports: | ||
| - "3000:80" | ||
| - "\${HOST_PORT:-8080}:80" | ||
| environment: | ||
| - WP_API_URL=\${WP_API_URL} | ||
| - WEBHOOK_SECRET=\${WEBHOOK_SECRET} | ||
| - SITE_URL=\${SITE_URL} | ||
| volumes: | ||
| # Persist built pages between restarts (optional) | ||
| - pages-cache:/var/www/html | ||
| - WP_API_URL=\${WP_API_URL:-} | ||
| - WEBHOOK_SECRET=\${WEBHOOK_SECRET:-} | ||
| - SITE_URL=\${SITE_URL:-} | ||
| - REBUILD_HOOK_URL=\${REBUILD_HOOK_URL:-} | ||
| restart: unless-stopped | ||
| volumes: | ||
| pages-cache: | ||
| `; | ||
@@ -401,0 +400,0 @@ await writeFile(join(outDir, 'docker-compose.yml'), content); |
@@ -139,2 +139,19 @@ // Emits the deployable wrapper around a captured mirror: a static Astro project | ||
| // docker-compose.yml — xCloud's Docker-from-Git deploy is Compose-based | ||
| // (compose file at repo root + a host port >= 1024 for its reverse proxy). | ||
| // No volume over /var/www/html: a named volume would keep serving the first | ||
| // build's pages after every redeploy. | ||
| await writeFile(join(outDir, 'docker-compose.yml'), `services: | ||
| site: | ||
| build: . | ||
| ports: | ||
| - "\${HOST_PORT:-8080}:80" | ||
| environment: | ||
| - WP_API_URL=\${WP_API_URL:-} | ||
| - WEBHOOK_SECRET=\${WEBHOOK_SECRET:-} | ||
| - SITE_URL=\${SITE_URL:-} | ||
| - REBUILD_HOOK_URL=\${REBUILD_HOOK_URL:-} | ||
| restart: unless-stopped | ||
| `); | ||
| // Regenerator sidecar — parity with the scaffold pipeline (boots in the same container). | ||
@@ -141,0 +158,0 @@ const reg = join(outDir, 'regenerator'); |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
402783
0.2%7280
0.22%