@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 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