@uniflowed/config 0.0.0-alpha.45 → 0.0.0-alpha.47
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/internal/schema.js +28 -0
- package/package.json +1 -1
package/internal/schema.js
CHANGED
|
@@ -423,6 +423,34 @@ export type UniflowedConfig = {
|
|
|
423
423
|
readonly widths?: $ReadOnlyArray<number>,
|
|
424
424
|
readonly quality?: number,
|
|
425
425
|
readonly placeholder?: boolean,
|
|
426
|
+
// The remote images `/__uf/image` may fetch, resize and re-encode —
|
|
427
|
+
// Next.js's `images.remotePatterns`, with its four keys and its
|
|
428
|
+
// wildcards. Empty, the default, means there is no endpoint at all. A
|
|
429
|
+
// redirect is followed only to a URL that matches too. See
|
|
430
|
+
// docs/app/guide/assets.
|
|
431
|
+
readonly remotePatterns?: $ReadOnlyArray<{
|
|
432
|
+
// `"https"` when absent; `"http"` has to be said.
|
|
433
|
+
readonly protocol?: "https" | "http",
|
|
434
|
+
// A name, or one under a leading `*.` (one more label) or `**.`
|
|
435
|
+
// (any number). A bare `*` is refused: it is not an allow-list.
|
|
436
|
+
readonly hostname: string,
|
|
437
|
+
// The protocol's default port when absent, and no other.
|
|
438
|
+
readonly port?: string,
|
|
439
|
+
// `*` is one segment and `**` any number. Any path when absent.
|
|
440
|
+
readonly pathname?: string,
|
|
441
|
+
}>,
|
|
442
|
+
// Qualities the endpoint answers besides `quality`. Each one is one
|
|
443
|
+
// more encode of every remote image a stranger can ask for, so the
|
|
444
|
+
// endpoint takes the listed ones and no others.
|
|
445
|
+
readonly qualities?: $ReadOnlyArray<number>,
|
|
446
|
+
// Fetch from loopback, private and link-local addresses too. For a
|
|
447
|
+
// test that serves its own images; never for a deployment.
|
|
448
|
+
readonly dangerouslyAllowPrivateAddresses?: boolean,
|
|
449
|
+
// A module exporting `createImageTransformer`, for a deploy target
|
|
450
|
+
// with no encoder of its own: `--adapter node`, `bun`, `deno`,
|
|
451
|
+
// `container` and `serverless`. `uf start` and `uf preview` encode
|
|
452
|
+
// with uf, and `--adapter edge` with Cloudflare's image binding.
|
|
453
|
+
readonly transformer?: string,
|
|
426
454
|
},
|
|
427
455
|
readonly fonts?: {
|
|
428
456
|
readonly enabled?: boolean,
|