htmlship 0.3.2 → 0.3.3
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.
- package/README.md +1 -1
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ npx htmlship deploy --dry-run # build, but don't publis
|
|
|
30
30
|
npx htmlship deploy --build-cmd "vite build" --out dist
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
The build always runs **locally on your machine** (npm/pnpm/yarn/bun, auto-detected) — never on the server. Either way the result renders in its own isolated, opaque origin (no cookies, no same-origin access, no network egress, no `eval`) via a sandboxed CSP; single-file pages
|
|
33
|
+
The build always runs **locally on your machine** (npm/pnpm/yarn/bun, auto-detected) — never on the server. Either way the result renders in its own isolated, opaque origin (no cookies, no same-origin access, no network egress, no `eval`) via a sandboxed CSP; single-file pages are capped at 10 MB, multi-file sites at 50 MB.
|
|
34
34
|
|
|
35
35
|
For Next.js the CLI builds a static export based at the slug path automatically (no `next.config` edits — JS, `.mjs`, and `.ts` configs are all handled) as long as the app is statically exportable (no middleware/SSR). For other frameworks, `--site` ships any static build; set your framework's base path to `/__htmlship_base__` so assets resolve under `/{slug}/`. The same flow is available to agents through the `deploy_project` MCP tool.
|
|
36
36
|
|
package/dist/cli.js
CHANGED
|
@@ -344,7 +344,7 @@ export default typeof orig === 'function' ? ((...a) => ({ ...orig(...a), ...over
|
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
function packageSite(outDir, maxBytes =
|
|
347
|
+
function packageSite(outDir, maxBytes = 50 * 1024 * 1024) {
|
|
348
348
|
const files = [];
|
|
349
349
|
let total = 0;
|
|
350
350
|
const walk = (d) => {
|
|
@@ -456,7 +456,7 @@ var VERSION;
|
|
|
456
456
|
var init_version = __esm({
|
|
457
457
|
"src/version.ts"() {
|
|
458
458
|
"use strict";
|
|
459
|
-
VERSION = "0.3.
|
|
459
|
+
VERSION = "0.3.3";
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
|