@hyperframes/producer 0.9.52 → 0.9.54
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 +18 -0
- package/dist/distributed.js +204 -121
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/index.js +394 -159
- package/dist/public-server.js +372 -138
- package/dist/server.d.ts +18 -1
- package/dist/services/assetMediaType.d.ts +1 -0
- package/dist/services/htmlCompiler.d.ts +11 -0
- package/dist/services/hyperframeLint.d.ts +1 -1
- package/dist/services/render/shared.d.ts +1 -0
- package/dist/services/render/stages/audioStage.d.ts +2 -1
- package/dist/services/render/stages/compileStage.d.ts +1 -1
- package/dist/services/render/stages/extractVideosStage.d.ts +14 -6
- package/dist/services/renderOrchestrator.d.ts +6 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -38,6 +38,24 @@ await startServer({ port: 8080 });
|
|
|
38
38
|
// POST /render or /render/stream with projectDir, html, or previewUrl (public HTTPS only) and render options
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
A browser request (one that carries an `Origin` or `Sec-Fetch-Site` header) is accepted
|
|
42
|
+
only under an IP address, `localhost` or a `*.localhost` name, so a page that points its
|
|
43
|
+
own domain at the server cannot start renders or lint. If browsers reach the server
|
|
44
|
+
through a proxy name, list that name in `allowedHosts` or in the comma-separated
|
|
45
|
+
`PRODUCER_ALLOWED_HOSTS` variable. Requests without those headers, such as curl or
|
|
46
|
+
another service, are unaffected.
|
|
47
|
+
|
|
48
|
+
The server listens on `127.0.0.1` unless you pass `hostname` or set `PRODUCER_HOST`. To
|
|
49
|
+
listen on any other address, also set `authToken` or `PRODUCER_AUTH_TOKEN`. Every route
|
|
50
|
+
except `/health` then requires `Authorization: Bearer <token>`, and the server refuses to
|
|
51
|
+
start without one. A request's `projectDir` must resolve, symlinks included, inside
|
|
52
|
+
`projectsDir` (`PRODUCER_PROJECTS_DIR`, default: the working directory). Its `entryFile`
|
|
53
|
+
must stay inside that project, and `outputPath` must be inside `rendersDir`
|
|
54
|
+
(`PRODUCER_RENDERS_DIR`, default `/tmp`). `debug: true` is refused unless you set
|
|
55
|
+
`allowDebug` or `PRODUCER_ALLOW_DEBUG=1`. `createProducerApp` applies these path and
|
|
56
|
+
debug checks by default. `createRenderHandlers`, for mounting the handlers inside your own
|
|
57
|
+
trusted service, applies them only with `confineRequests: true`.
|
|
58
|
+
|
|
41
59
|
Both HTTP routes accept optional `pageMotionBlur: "off"` to disable authored page
|
|
42
60
|
motion blur. Omit it to preserve the composition's behavior. Other explicit values
|
|
43
61
|
are rejected before a render starts. This is separate from engine sub-frame
|