New:Socket for Asana Is Now Available.Learn more
Get Started

@speed.press/kit

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@speed.press/kit - npm Package Compare versions

Comparing version
1.7.0
to
1.7.1
+1
-1
package.json
{
"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');