@norskvideo/ctl-dev-kit 0.2.130 → 0.2.132
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.
|
@@ -29,7 +29,7 @@ export function useAlerts(componentId: string | null, env: EnvResponse | null):
|
|
|
29
29
|
const url = `${env.apiBasePath}/${componentId}/alerts`;
|
|
30
30
|
const poll = async () => {
|
|
31
31
|
try {
|
|
32
|
-
const res = await fetch(url, { credentials: "
|
|
32
|
+
const res = await fetch(url, { credentials: "same-origin" });
|
|
33
33
|
if (!res.ok) return;
|
|
34
34
|
const json = (await res.json()) as Alert[];
|
|
35
35
|
if (cancelled) return;
|
package/local-dev/README.md
CHANGED
|
@@ -146,6 +146,40 @@ NORSK_CTL_BINARY=/tmp/norsk-ctl-src NORSK_LICENSE_FILE=/path/to/license.json bun
|
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
The wrapper forwards `serve` / `product add` / everything, so the whole slow tier
|
|
149
|
-
runs against `../norsk-ctl`.
|
|
149
|
+
runs against `../norsk-ctl`.
|
|
150
|
+
|
|
151
|
+
### Extra config for the dev-loop's daemon
|
|
152
|
+
|
|
153
|
+
`dev-loop up` (`bun run demo -- dev-loop up`, or `bun run dev-loop up`) always
|
|
154
|
+
starts its own private daemon. To give that daemon config the driver has no
|
|
155
|
+
flag for, such as a `storage:` block or `bindAddress`, put the keys in a YAML
|
|
156
|
+
file and pass it with `--daemon-config`:
|
|
157
|
+
|
|
158
|
+
```sh
|
|
159
|
+
cat > ctl-extra.yaml <<'YAML'
|
|
160
|
+
bindAddress: 127.0.0.1
|
|
161
|
+
storage:
|
|
162
|
+
provider: Minio
|
|
163
|
+
endpoint: http://host.docker.internal:9000
|
|
164
|
+
credentials:
|
|
165
|
+
kind: key-file
|
|
166
|
+
path: /abs/path/to/key
|
|
167
|
+
YAML
|
|
168
|
+
NORSK_CTL_BINARY=/tmp/norsk-ctl-src bun run demo -- dev-loop up --daemon-config ctl-extra.yaml
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
After `init`, the file's top-level keys are merged into the private store's
|
|
172
|
+
`config.yaml`. A key in the file replaces the key of the same name. Before
|
|
173
|
+
`serve`, the driver runs `norsk-ctl config show` with no daemon, so the ctl
|
|
174
|
+
that will serve parses the file with its own parser. If it refuses the
|
|
175
|
+
config, `up` stops with ctl's message. If it silently drops a key it does not
|
|
176
|
+
know, or a value it does not accept, `up` stops and names the key. The file
|
|
177
|
+
cannot set the keys the driver writes itself: `networkMode`,
|
|
178
|
+
`defaultWorkingDirectory`, the proxy settings (`proxyPort`, `proxyAuth`,
|
|
179
|
+
`httpRedirect`, `httpRedirectPort`, `externalPort`, `certSource`, `certPath`,
|
|
180
|
+
`keyPath`) and `publicHost` (use `--public-host` for that). Pair it with
|
|
181
|
+
`NORSK_CTL_BINARY` when the keys are new in a ctl you are running from source.
|
|
182
|
+
The flag belongs to `dev-loop up` only. Your published test-harness may be
|
|
183
|
+
older than this flag; to use it from a checkout, link the package with layer 1. (`NORSK_CTL_BINARY` resolution lives in
|
|
150
184
|
`@norskvideo/ctl-test-harness`'s `cli-command.ts`: explicit path → in-workspace
|
|
151
185
|
source → `norsk-ctl` on PATH.)
|