devflare 1.0.0-next.50 → 1.0.0-next.52
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 +3 -0
- package/dist/_chunks/{account-BI3WZMDy.js → account-Csog80ie.js} +1 -1
- package/dist/_chunks/{build-e0KR38-4.js → build-Ccza8VQz.js} +1 -1
- package/dist/_chunks/{build-artifacts-DU5V0J0Z.js → build-artifacts-BNssqhxE.js} +3 -3
- package/dist/_chunks/{cli-DuUz10Mn.js → cli-CqIDn-Hy.js} +22 -14
- package/dist/_chunks/{command-utils-DA0Qx9_K.js → command-utils-_bGRraDR.js} +1 -1
- package/dist/_chunks/{compiler-Zw16C9Pi.js → compiler-BtLp9T9N.js} +19 -8
- package/dist/_chunks/{config-Brju62xy.js → config-QU8UEWmA.js} +2 -2
- package/dist/_chunks/{config-path-DaL1ylZ_.js → config-path-1yI7BiDU.js} +1 -1
- package/dist/_chunks/{deploy-B-Kku1Vk.js → deploy-aifBaMVv.js} +5 -5
- package/dist/_chunks/{dev-D4e_RRZn.js → dev-DF_3baGr.js} +21 -9
- package/dist/_chunks/{doctor-jm_K4dxL.js → doctor-tR9kGT_Z.js} +2 -2
- package/dist/_chunks/{family-_9-mGSfO.js → family-DKPp4wqj.js} +1 -1
- package/dist/_chunks/{loader-Cr0_OWPy.js → loader-OQ2AWpqm.js} +23 -3
- package/dist/_chunks/{local-secrets-DMPkmOn3.js → local-secrets-CYoHfvQ1.js} +1 -1
- package/dist/_chunks/{local-workflow-entrypoints-Cq_WJajd.js → local-workflow-entrypoints-8d_mXh8T.js} +1 -1
- package/dist/_chunks/{login-FjTAAQbi.js → login-rVWUZOKC.js} +1 -1
- package/dist/_chunks/{preview-resources-CGMBjsYB.js → preview-resources-DRWR0gaB.js} +2 -2
- package/dist/_chunks/{previews-C7hs9-BT.js → previews-BxNq8Y_J.js} +6 -6
- package/dist/_chunks/{productions-T9Als4fE.js → productions-DXQ045cq.js} +98 -5
- package/dist/_chunks/{routes-BFYCqHb-.js → routes-B6XiI8Sa.js} +23 -5
- package/dist/_chunks/{schema-normalization-BCwTLTGp.js → schema-normalization-GjhTATHL.js} +11 -5
- package/dist/_chunks/{secrets-DIpJGe6C.js → secrets-qT1JaBGt.js} +1 -1
- package/dist/_chunks/{tail-IY-ijYmv.js → tail-CuWI04BL.js} +2 -2
- package/dist/_chunks/{types-DoKsMYfm.js → types-BquPXsFg.js} +3 -3
- package/dist/_chunks/{vite-CGtVNf5E.js → vite-D_wLDGBs.js} +4 -4
- package/dist/_chunks/{worker-BEZI4od1.js → worker-DEF-e8LL.js} +4 -4
- package/dist/bridge/miniflare.d.ts +3 -0
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/browser.d.ts +294 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/cli/commands/productions.d.ts.map +1 -1
- package/dist/cli/help-pages/pages/productions.d.ts.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/compiler/bindings.d.ts.map +1 -1
- package/dist/config/compiler/types.d.ts +11 -0
- package/dist/config/compiler/types.d.ts.map +1 -1
- package/dist/config/compiler.d.ts.map +1 -1
- package/dist/config/schema-bindings.d.ts +62 -0
- package/dist/config/schema-bindings.d.ts.map +1 -1
- package/dist/config/schema-env.d.ts +192 -0
- package/dist/config/schema-env.d.ts.map +1 -1
- package/dist/config/schema-normalization.d.ts +2 -0
- package/dist/config/schema-normalization.d.ts.map +1 -1
- package/dist/config/schema-runtime.d.ts +49 -0
- package/dist/config/schema-runtime.d.ts.map +1 -1
- package/dist/config/schema-types-bindings-platform.d.ts +12 -0
- package/dist/config/schema-types-bindings-platform.d.ts.map +1 -1
- package/dist/config/schema-types-bindings-resources.d.ts +35 -0
- package/dist/config/schema-types-bindings-resources.d.ts.map +1 -1
- package/dist/config/schema-types-runtime-server.d.ts +122 -0
- package/dist/config/schema-types-runtime-server.d.ts.map +1 -0
- package/dist/config/schema-types-runtime.d.ts +28 -32
- package/dist/config/schema-types-runtime.d.ts.map +1 -1
- package/dist/config/schema-types.d.ts +35 -1
- package/dist/config/schema-types.d.ts.map +1 -1
- package/dist/config/schema.d.ts +367 -2
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/dev-server/miniflare-bindings.d.ts +9 -0
- package/dist/dev-server/miniflare-bindings.d.ts.map +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
- package/dist/dev-server/miniflare-worker-config.d.ts +12 -1
- package/dist/dev-server/miniflare-worker-config.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/sveltekit/index.js +3 -3
- package/dist/test/index.js +18 -8
- package/dist/test/simple-context-mfconfig.d.ts.map +1 -1
- package/dist/test/simple-context-startup.d.ts.map +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -140,6 +140,7 @@ The most important top-level keys are:
|
|
|
140
140
|
- `bindings`
|
|
141
141
|
- `compatibilityDate`
|
|
142
142
|
- `compatibilityFlags`
|
|
143
|
+
- `complianceRegion`
|
|
143
144
|
- `containers`
|
|
144
145
|
- `env`
|
|
145
146
|
- `files`
|
|
@@ -159,11 +160,13 @@ The most important top-level keys are:
|
|
|
159
160
|
- `secrets`
|
|
160
161
|
- `secretsStoreId`
|
|
161
162
|
- `server`
|
|
163
|
+
- `streamingTailConsumers`
|
|
162
164
|
- `tailConsumers`
|
|
163
165
|
- `triggers`
|
|
164
166
|
- `uploadSourceMaps`
|
|
165
167
|
- `vars`
|
|
166
168
|
- `vite`
|
|
169
|
+
- `workersDev`
|
|
167
170
|
- `wrangler.passthrough`
|
|
168
171
|
- `wsRoutes`
|
|
169
172
|
|
|
@@ -3,7 +3,7 @@ import { a as setGlobalDefaultAccountId, i as getWorkspaceAccountId, o as setWor
|
|
|
3
3
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
4
4
|
import { a as DIM, c as RESET, i as CYAN_BOLD, r as CYAN } from "./colors-DiK6wPJ5.js";
|
|
5
5
|
import { c as formatCommand, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
6
|
-
import { n as getConfiguredAccountId } from "./command-utils-
|
|
6
|
+
import { n as getConfiguredAccountId } from "./command-utils-_bGRraDR.js";
|
|
7
7
|
//#region src/cli/commands/account.ts
|
|
8
8
|
const ACCOUNT_SUBCOMMANDS = [
|
|
9
9
|
"info",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as cyanBold, f as logLine, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
2
|
-
import { t as prepareBuildArtifacts } from "./build-artifacts-
|
|
2
|
+
import { t as prepareBuildArtifacts } from "./build-artifacts-BNssqhxE.js";
|
|
3
3
|
//#region src/cli/commands/build.ts
|
|
4
4
|
async function runBuildCommand(parsed, logger, options) {
|
|
5
5
|
const theme = createCliTheme(parsed.options);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-OQ2AWpqm.js";
|
|
3
|
+
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-BtLp9T9N.js";
|
|
4
4
|
import { f as logLine } from "./ui-BUoZApvE.js";
|
|
5
5
|
import { n as getPackageVersion } from "./package-metadata-DjHBLB-z.js";
|
|
6
6
|
import { t as resolvePackageSpecifier } from "./resolve-package-qizBfCIm.js";
|
|
7
|
-
import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-
|
|
7
|
+
import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-D_wLDGBs.js";
|
|
8
8
|
import { t as bundleWorkerEntry } from "./worker-bundler-dTTnYU3n.js";
|
|
9
9
|
import { t as detectViteProject } from "./vite-utils-OVLMV605.js";
|
|
10
10
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
@@ -712,13 +712,15 @@ const PRODUCTION_HELP_PAGES = [
|
|
|
712
712
|
usage: [
|
|
713
713
|
"devflare productions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
|
|
714
714
|
"devflare productions versions [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
|
|
715
|
+
"devflare productions deployments [--config <path>] [--env <name>] [--account <id>] [--worker <name>]",
|
|
715
716
|
"devflare productions rollback [--config <path>] [--account <id>] [--worker <name>] [--version-id <id>] [--message <text>] [--apply]",
|
|
716
717
|
"devflare productions delete [--config <path>] [--account <id>] [--worker <name>] [--apply]"
|
|
717
718
|
],
|
|
718
|
-
description: ["The default view inspects live Cloudflare production deployment state for locally configured Workers, or for one explicitly selected Worker.", "Other subcommands list recent production versions or mutate a single Worker by rolling back or deleting its live production script."],
|
|
719
|
+
description: ["The default view inspects live Cloudflare production deployment state for locally configured Workers, or for one explicitly selected Worker.", "Other subcommands list recent production versions, show the full deployment history, or mutate a single Worker by rolling back or deleting its live production script."],
|
|
719
720
|
subcommands: [
|
|
720
721
|
entry("list", "List live production Workers and their active deployments (default)"),
|
|
721
722
|
entry("versions", "Show recent stored production versions and which one is currently active"),
|
|
723
|
+
entry("deployments", "Show the full chronological production deployment history with traffic splits"),
|
|
722
724
|
entry("rollback", "Roll a Worker back to the previous or specified production version"),
|
|
723
725
|
entry("delete", "Delete a live production Worker script")
|
|
724
726
|
],
|
|
@@ -757,6 +759,12 @@ const PRODUCTION_HELP_PAGES = [
|
|
|
757
759
|
entry("--account <id>", "Use a specific Cloudflare account"),
|
|
758
760
|
entry("--worker <name>", "Target a specific Worker instead of the locally configured set")
|
|
759
761
|
], [entry("devflare productions versions", "Show recent stored production versions for the resolved Workers"), entry("devflare productions versions --worker my-worker", "Show recent stored production versions for `my-worker`")]),
|
|
762
|
+
createProductionsSubcommandPage("deployments", "Show the full chronological production deployment history", ["devflare productions deployments [--config <path>] [--env <name>] [--account <id>] [--worker <name>]"], ["Lists every production deployment for the selected Worker set in reverse-chronological order, including each deployment id, strategy, per-version traffic split, source, who triggered it, and the deployment message."], [
|
|
763
|
+
entry("--config <path>", "Use a specific devflare config file"),
|
|
764
|
+
entry("--env <name>", "Resolve `config.env[name]` while discovering related production Workers (defaults to `production`)"),
|
|
765
|
+
entry("--account <id>", "Use a specific Cloudflare account"),
|
|
766
|
+
entry("--worker <name>", "Target a specific Worker instead of the locally configured set")
|
|
767
|
+
], [entry("devflare productions deployments", "Show the full production deployment history for the resolved Workers"), entry("devflare productions deployments --worker my-worker", "Show the full production deployment history for `my-worker`")], ["This view is read-only and is backed by live Cloudflare deployment history."]),
|
|
760
768
|
createProductionsSubcommandPage("rollback", "Roll a Worker back to the previous or specified production version", ["devflare productions rollback [--config <path>] [--account <id>] [--worker <name>] [--version-id <id>] [--message <text>] [--apply]"], ["Uses Wrangler rollback to create a fresh production deployment that points at the previous or explicitly selected version."], [
|
|
761
769
|
entry("--config <path>", "Use a specific devflare config file"),
|
|
762
770
|
entry("--account <id>", "Use a specific Cloudflare account"),
|
|
@@ -1093,50 +1101,50 @@ async function runInit(parsed, logger, options) {
|
|
|
1093
1101
|
return runInitCommand(parsed, logger, options);
|
|
1094
1102
|
}
|
|
1095
1103
|
async function runDev(parsed, logger, options) {
|
|
1096
|
-
const { runDevCommand } = await import("./dev-
|
|
1104
|
+
const { runDevCommand } = await import("./dev-DF_3baGr.js");
|
|
1097
1105
|
return runDevCommand(parsed, logger, options);
|
|
1098
1106
|
}
|
|
1099
1107
|
async function runBuild(parsed, logger, options) {
|
|
1100
|
-
const { runBuildCommand } = await import("./build-
|
|
1108
|
+
const { runBuildCommand } = await import("./build-Ccza8VQz.js");
|
|
1101
1109
|
return runBuildCommand(parsed, logger, options);
|
|
1102
1110
|
}
|
|
1103
1111
|
async function runDeploy(parsed, logger, options) {
|
|
1104
|
-
const { runDeployCommand } = await import("./deploy-
|
|
1112
|
+
const { runDeployCommand } = await import("./deploy-aifBaMVv.js");
|
|
1105
1113
|
return runDeployCommand(parsed, logger, {
|
|
1106
1114
|
...options,
|
|
1107
1115
|
requireExplicitDeployTarget: true
|
|
1108
1116
|
});
|
|
1109
1117
|
}
|
|
1110
1118
|
async function runTypes(parsed, logger, options) {
|
|
1111
|
-
const { runTypesCommand } = await import("./types-
|
|
1119
|
+
const { runTypesCommand } = await import("./types-BquPXsFg.js");
|
|
1112
1120
|
return runTypesCommand(parsed, logger, options);
|
|
1113
1121
|
}
|
|
1114
1122
|
async function runDoctor(parsed, logger, options) {
|
|
1115
|
-
const { runDoctorCommand } = await import("./doctor-
|
|
1123
|
+
const { runDoctorCommand } = await import("./doctor-tR9kGT_Z.js");
|
|
1116
1124
|
return runDoctorCommand(parsed, logger, options);
|
|
1117
1125
|
}
|
|
1118
1126
|
async function runConfig(parsed, logger, options) {
|
|
1119
|
-
const { runConfigCommand } = await import("./config-
|
|
1127
|
+
const { runConfigCommand } = await import("./config-QU8UEWmA.js");
|
|
1120
1128
|
return runConfigCommand(parsed, logger, options);
|
|
1121
1129
|
}
|
|
1122
1130
|
async function runAccount(parsed, logger, options) {
|
|
1123
|
-
const { runAccountCommand } = await import("./account-
|
|
1131
|
+
const { runAccountCommand } = await import("./account-Csog80ie.js");
|
|
1124
1132
|
return runAccountCommand(parsed, logger, options);
|
|
1125
1133
|
}
|
|
1126
1134
|
async function runLogin(parsed, logger, options) {
|
|
1127
|
-
const { runLoginCommand } = await import("./login-
|
|
1135
|
+
const { runLoginCommand } = await import("./login-rVWUZOKC.js");
|
|
1128
1136
|
return runLoginCommand(parsed, logger, options);
|
|
1129
1137
|
}
|
|
1130
1138
|
async function runPreviews(parsed, logger, options) {
|
|
1131
|
-
const { runPreviewsCommand } = await import("./previews-
|
|
1139
|
+
const { runPreviewsCommand } = await import("./previews-BxNq8Y_J.js");
|
|
1132
1140
|
return runPreviewsCommand(parsed, logger, options);
|
|
1133
1141
|
}
|
|
1134
1142
|
async function runProductions(parsed, logger, options) {
|
|
1135
|
-
const { runProductionsCommand } = await import("./productions-
|
|
1143
|
+
const { runProductionsCommand } = await import("./productions-DXQ045cq.js");
|
|
1136
1144
|
return runProductionsCommand(parsed, logger, options);
|
|
1137
1145
|
}
|
|
1138
1146
|
async function runWorker(parsed, logger, options) {
|
|
1139
|
-
const { runWorkerCommand } = await import("./worker-
|
|
1147
|
+
const { runWorkerCommand } = await import("./worker-DEF-e8LL.js");
|
|
1140
1148
|
return runWorkerCommand(parsed, logger, options);
|
|
1141
1149
|
}
|
|
1142
1150
|
async function runToken(parsed, logger, options) {
|
|
@@ -1144,11 +1152,11 @@ async function runToken(parsed, logger, options) {
|
|
|
1144
1152
|
return runTokenCommand(parsed, logger, options);
|
|
1145
1153
|
}
|
|
1146
1154
|
async function runSecrets(parsed, logger, options) {
|
|
1147
|
-
const { runSecretsCommand } = await import("./secrets-
|
|
1155
|
+
const { runSecretsCommand } = await import("./secrets-qT1JaBGt.js");
|
|
1148
1156
|
return runSecretsCommand(parsed, logger, options);
|
|
1149
1157
|
}
|
|
1150
1158
|
async function runTail(parsed, logger, options) {
|
|
1151
|
-
const { runTailCommand } = await import("./tail-
|
|
1159
|
+
const { runTailCommand } = await import("./tail-CuWI04BL.js");
|
|
1152
1160
|
return runTailCommand(parsed, logger, options);
|
|
1153
1161
|
}
|
|
1154
1162
|
async function runAI() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveConfigPath, r as loadConfig } from "./loader-
|
|
1
|
+
import { i as resolveConfigPath, r as loadConfig } from "./loader-OQ2AWpqm.js";
|
|
2
2
|
import { d as getPrimaryAccount, i as getWorkspaceAccountId, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
3
3
|
//#region src/cli/command-utils.ts
|
|
4
4
|
function asOptionalString(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-
|
|
2
|
-
import { C as browserBindingSchema, _ as normalizeSecretsStoreBinding, a as normalizeD1Binding, b as normalizeVpcServiceBinding, c as normalizeFlagshipBinding, d as normalizeKVBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, r as getSingleBrowserBindingName, s as normalizeDispatchNamespaceBinding, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding, y as normalizeVpcNetworkBinding } from "./schema-normalization-
|
|
1
|
+
import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-OQ2AWpqm.js";
|
|
2
|
+
import { C as browserBindingSchema, _ as normalizeSecretsStoreBinding, a as normalizeD1Binding, b as normalizeVpcServiceBinding, c as normalizeFlagshipBinding, d as normalizeKVBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, r as getSingleBrowserBindingName, s as normalizeDispatchNamespaceBinding, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding, y as normalizeVpcNetworkBinding } from "./schema-normalization-GjhTATHL.js";
|
|
3
3
|
import { n as toWranglerSecretsConfig } from "./local-dev-vars-CTSa-wvF.js";
|
|
4
4
|
import { basename, isAbsolute, relative, resolve } from "pathe";
|
|
5
5
|
//#region src/config/compiler/bindings.ts
|
|
@@ -102,7 +102,8 @@ function compileBindings(bindings, result, options = {}, defaultSecretsStoreId)
|
|
|
102
102
|
return {
|
|
103
103
|
binding,
|
|
104
104
|
queue: normalized.queue,
|
|
105
|
-
...normalized.remote !== void 0 && { remote: normalized.remote }
|
|
105
|
+
...normalized.remote !== void 0 && { remote: normalized.remote },
|
|
106
|
+
...normalized.deliveryDelay !== void 0 && { delivery_delay: normalized.deliveryDelay }
|
|
106
107
|
};
|
|
107
108
|
});
|
|
108
109
|
if (bindings.queues.consumers) result.queues.consumers = bindings.queues.consumers.map((consumer) => ({
|
|
@@ -112,7 +113,8 @@ function compileBindings(bindings, result, options = {}, defaultSecretsStoreId)
|
|
|
112
113
|
...consumer.maxRetries && { max_retries: consumer.maxRetries },
|
|
113
114
|
...consumer.deadLetterQueue && { dead_letter_queue: consumer.deadLetterQueue },
|
|
114
115
|
...consumer.maxConcurrency && { max_concurrency: consumer.maxConcurrency },
|
|
115
|
-
...consumer.retryDelay && { retry_delay: consumer.retryDelay }
|
|
116
|
+
...consumer.retryDelay && { retry_delay: consumer.retryDelay },
|
|
117
|
+
...consumer.visibilityTimeoutMs && { visibility_timeout_ms: consumer.visibilityTimeoutMs }
|
|
116
118
|
}));
|
|
117
119
|
}
|
|
118
120
|
if (bindings.rateLimits) result.ratelimits = Object.entries(bindings.rateLimits).map(([name, config]) => ({
|
|
@@ -244,7 +246,8 @@ function compileBindings(bindings, result, options = {}, defaultSecretsStoreId)
|
|
|
244
246
|
service: config.service,
|
|
245
247
|
...config.entrypoint && { entrypoint: config.entrypoint },
|
|
246
248
|
...config.environment && { environment: config.environment },
|
|
247
|
-
...config.remote !== void 0 && { remote: config.remote }
|
|
249
|
+
...config.remote !== void 0 && { remote: config.remote },
|
|
250
|
+
...config.props !== void 0 && { props: config.props }
|
|
248
251
|
}));
|
|
249
252
|
if (bindings.ai?.binding) result.ai = {
|
|
250
253
|
binding: bindings.ai.binding,
|
|
@@ -279,7 +282,8 @@ function compileBindings(bindings, result, options = {}, defaultSecretsStoreId)
|
|
|
279
282
|
name,
|
|
280
283
|
...config.destinationAddress && { destination_address: config.destinationAddress },
|
|
281
284
|
...config.allowedDestinationAddresses && { allowed_destination_addresses: config.allowedDestinationAddresses },
|
|
282
|
-
...config.allowedSenderAddresses && { allowed_sender_addresses: config.allowedSenderAddresses }
|
|
285
|
+
...config.allowedSenderAddresses && { allowed_sender_addresses: config.allowedSenderAddresses },
|
|
286
|
+
...config.remote !== void 0 && { remote: config.remote }
|
|
283
287
|
}));
|
|
284
288
|
}
|
|
285
289
|
//#endregion
|
|
@@ -437,7 +441,8 @@ function compileConfigInternal(config, environment, options = {}) {
|
|
|
437
441
|
name: mergedConfig.name,
|
|
438
442
|
compatibility_date: mergedConfig.compatibilityDate,
|
|
439
443
|
preview_urls: true,
|
|
440
|
-
workers_dev: true
|
|
444
|
+
workers_dev: mergedConfig.workersDev ?? true,
|
|
445
|
+
...mergedConfig.complianceRegion !== void 0 && { compliance_region: mergedConfig.complianceRegion }
|
|
441
446
|
};
|
|
442
447
|
if (mergedConfig.accountId) result.account_id = mergedConfig.accountId;
|
|
443
448
|
const mainEntry = mergedConfig.files?.fetch;
|
|
@@ -450,6 +455,10 @@ function compileConfigInternal(config, environment, options = {}) {
|
|
|
450
455
|
service: consumer.service,
|
|
451
456
|
...consumer.environment && { environment: consumer.environment }
|
|
452
457
|
});
|
|
458
|
+
if (mergedConfig.streamingTailConsumers && mergedConfig.streamingTailConsumers.length > 0) result.streaming_tail_consumers = mergedConfig.streamingTailConsumers.map((consumer) => typeof consumer === "string" ? { service: consumer } : {
|
|
459
|
+
service: consumer.service,
|
|
460
|
+
...consumer.environment && { environment: consumer.environment }
|
|
461
|
+
});
|
|
453
462
|
if (mergedConfig.vars && Object.keys(mergedConfig.vars).length > 0) result.vars = mergedConfig.vars;
|
|
454
463
|
const secrets = toWranglerSecretsConfig(mergedConfig.secrets);
|
|
455
464
|
if (secrets) result.secrets = secrets;
|
|
@@ -457,7 +466,9 @@ function compileConfigInternal(config, environment, options = {}) {
|
|
|
457
466
|
pattern: route.pattern,
|
|
458
467
|
...route.zone_name && { zone_name: route.zone_name },
|
|
459
468
|
...route.zone_id && { zone_id: route.zone_id },
|
|
460
|
-
...route.custom_domain !== void 0 && { custom_domain: route.custom_domain }
|
|
469
|
+
...route.custom_domain !== void 0 && { custom_domain: route.custom_domain },
|
|
470
|
+
...route.enabled !== void 0 && { enabled: route.enabled },
|
|
471
|
+
...route.previews_enabled !== void 0 && { previews_enabled: route.previews_enabled }
|
|
461
472
|
}));
|
|
462
473
|
if (mergedConfig.assets?.directory) result.assets = {
|
|
463
474
|
directory: mergedConfig.assets.directory,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-
|
|
3
|
-
import { n as compileConfig, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-OQ2AWpqm.js";
|
|
3
|
+
import { n as compileConfig, t as compileBuildConfig } from "./compiler-BtLp9T9N.js";
|
|
4
4
|
//#region src/cli/commands/config.ts
|
|
5
5
|
function isSupportedFormat(value) {
|
|
6
6
|
return value === "devflare" || value === "wrangler";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as resolvePreviewIdentifier, d as resolveConfigEnvVars } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-OQ2AWpqm.js";
|
|
3
|
+
import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-BtLp9T9N.js";
|
|
4
4
|
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
5
5
|
import { D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, T as getWorkersSubdomain, c as reconcilePreviewRegistry, w as getWorkerVersionDetail, x as formatWorkersDevUrl } from "./preview-registry-ClAbLTHH.js";
|
|
6
6
|
import { _ as yellowBold, d as green, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
7
7
|
import { n as getPackageVersion } from "./package-metadata-DjHBLB-z.js";
|
|
8
8
|
import { t as resolvePackageSpecifier } from "./resolve-package-qizBfCIm.js";
|
|
9
|
-
import { t as asOptionalString } from "./command-utils-
|
|
10
|
-
import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-
|
|
9
|
+
import { t as asOptionalString } from "./command-utils-_bGRraDR.js";
|
|
10
|
+
import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-BNssqhxE.js";
|
|
11
11
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
12
|
-
import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-
|
|
12
|
+
import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-DRWR0gaB.js";
|
|
13
13
|
import { mkdir, open, readFile, rm, writeFile } from "node:fs/promises";
|
|
14
14
|
import { basename, dirname, isAbsolute, join, resolve } from "pathe";
|
|
15
15
|
//#region src/config/service-bindings-validation.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as getDevflareDotenvPaths, d as resolveConfigEnvVars, o as EnvVarResolutionError } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { i as resolveConfigPath, r as loadConfig } from "./loader-
|
|
3
|
-
import { g as normalizeR2Binding, n as getLocalKVNamespaceIdentifier, r as getSingleBrowserBindingName, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-
|
|
2
|
+
import { i as resolveConfigPath, r as loadConfig } from "./loader-OQ2AWpqm.js";
|
|
3
|
+
import { g as normalizeR2Binding, n as getLocalKVNamespaceIdentifier, r as getSingleBrowserBindingName, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-GjhTATHL.js";
|
|
4
4
|
import { t as applyLocalDevVarsToConfig } from "./local-dev-vars-CTSa-wvF.js";
|
|
5
5
|
import { a as cyanBold, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
6
6
|
import { clearLocalSendEmailBindings, setLocalSendEmailBindings } from "../utils/send-email.js";
|
|
7
|
-
import { C as buildSendEmailConfig, D as
|
|
7
|
+
import { C as buildSendEmailConfig, D as buildVersionMetadataConfig, E as buildTailConsumersConfig, O as buildWorkerLoadersConfig, S as buildSecretsStoreConfig, T as buildStreamingTailConsumersConfig, _ as buildMtlsCertificatesConfig, b as buildQueueProducers, c as buildAiSearchInstancesConfig, d as buildArtifactsConfig, f as buildDispatchNamespacesConfig, g as buildMediaConfig, h as buildImagesConfig, k as buildWorkflowsConfig, l as buildAiSearchNamespacesConfig, m as buildHyperdrivesConfig, n as getRouteDirectoryCandidate, p as buildFlagshipConfig, s as resolveServiceBindings, t as discoverRoutes, u as buildAnalyticsEngineConfig, v as buildPipelinesConfig, w as buildStreamConfig, x as buildRateLimitsConfig, y as buildQueueConsumers } from "./routes-B6XiI8Sa.js";
|
|
8
8
|
import { r as transformDurableObject } from "./durable-object-DMtH0XYX.js";
|
|
9
9
|
import { i as findFiles } from "./glob-CmQOvunB.js";
|
|
10
|
-
import { d as DEFAULT_FETCH_ENTRY_FILES, f as DEFAULT_QUEUE_ENTRY_FILES, g as discoverDurableObjectFiles, h as resolveWorkerSurfacePaths, i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject, p as DEFAULT_SCHEDULED_ENTRY_FILES, u as DEFAULT_EMAIL_ENTRY_FILES } from "./vite-
|
|
10
|
+
import { d as DEFAULT_FETCH_ENTRY_FILES, f as DEFAULT_QUEUE_ENTRY_FILES, g as discoverDurableObjectFiles, h as resolveWorkerSurfacePaths, i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject, p as DEFAULT_SCHEDULED_ENTRY_FILES, u as DEFAULT_EMAIL_ENTRY_FILES } from "./vite-D_wLDGBs.js";
|
|
11
11
|
import { a as createWorkerdBundlerDefaults, i as writeWorkerCompatibleBundle, n as ensureDebugShim, r as resolveWorkerCompatibleRolldownConfig, t as bundleWorkerEntry } from "./worker-bundler-dTTnYU3n.js";
|
|
12
|
-
import { t as bundleWorkflowEntrypointScript } from "./local-workflow-entrypoints-
|
|
13
|
-
import { n as buildLocalSecretWrappedBindingConfig } from "./local-secrets-
|
|
12
|
+
import { t as bundleWorkflowEntrypointScript } from "./local-workflow-entrypoints-8d_mXh8T.js";
|
|
13
|
+
import { n as buildLocalSecretWrappedBindingConfig } from "./local-secrets-CYoHfvQ1.js";
|
|
14
14
|
import { t as buildLocalBindingShimServiceConfig } from "./local-media-bindings-DsAW4AMF.js";
|
|
15
15
|
import { i as waitForViteReady, n as resolveViteMode, r as stopSpawnedProcessTree, t as detectViteProject } from "./vite-utils-OVLMV605.js";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
@@ -1895,7 +1895,8 @@ function buildServiceBindings(bindings, extraBindings = {}) {
|
|
|
1895
1895
|
const serviceBindings = {};
|
|
1896
1896
|
if (bindings.services) for (const [bindingName, serviceConfig] of Object.entries(bindings.services)) serviceBindings[bindingName] = {
|
|
1897
1897
|
name: serviceConfig.service,
|
|
1898
|
-
...serviceConfig.entrypoint && { entrypoint: serviceConfig.entrypoint }
|
|
1898
|
+
...serviceConfig.entrypoint && { entrypoint: serviceConfig.entrypoint },
|
|
1899
|
+
...serviceConfig.props !== void 0 && { props: serviceConfig.props }
|
|
1899
1900
|
};
|
|
1900
1901
|
for (const [bindingName, target] of Object.entries(extraBindings)) serviceBindings[bindingName] = target;
|
|
1901
1902
|
return Object.keys(serviceBindings).length > 0 ? serviceBindings : void 0;
|
|
@@ -1905,7 +1906,7 @@ function buildServiceBindings(bindings, extraBindings = {}) {
|
|
|
1905
1906
|
* All inputs are passed explicitly (no closures over the caller's locals).
|
|
1906
1907
|
*/
|
|
1907
1908
|
function makeMiniflareWorker(context, options) {
|
|
1908
|
-
const { cwd, loadedConfig, bindings, sendEmailConfig, rateLimitsConfig, versionMetadataConfig, workerLoadersConfig, mtlsCertificatesConfig, dispatchNamespacesConfig, workflowsConfig, pipelinesConfig, hyperdrivesConfig, imagesConfig, mediaConfig, streamConfig, flagshipConfig, analyticsEngineConfig, tailConsumersConfig, artifactsConfig, aiSearchNamespacesConfig, aiSearchInstancesConfig, secretsStoreConfig, localSecretWrappedBindingConfig, queueProducers } = context;
|
|
1909
|
+
const { cwd, loadedConfig, bindings, sendEmailConfig, rateLimitsConfig, versionMetadataConfig, workerLoadersConfig, mtlsCertificatesConfig, dispatchNamespacesConfig, workflowsConfig, pipelinesConfig, hyperdrivesConfig, imagesConfig, mediaConfig, streamConfig, flagshipConfig, analyticsEngineConfig, tailConsumersConfig, streamingTailConsumersConfig, artifactsConfig, aiSearchNamespacesConfig, aiSearchInstancesConfig, secretsStoreConfig, localSecretWrappedBindingConfig, queueProducers } = context;
|
|
1909
1910
|
const baseFlags = loadedConfig.compatibilityFlags ?? [];
|
|
1910
1911
|
const compatFlags = baseFlags.includes("nodejs_compat") ? baseFlags : [...baseFlags, "nodejs_compat"];
|
|
1911
1912
|
const workerBindings = loadedConfig.vars ?? {};
|
|
@@ -1940,6 +1941,7 @@ function makeMiniflareWorker(context, options) {
|
|
|
1940
1941
|
...flagshipConfig && { flagship: flagshipConfig },
|
|
1941
1942
|
...analyticsEngineConfig && { analyticsEngineDatasets: analyticsEngineConfig },
|
|
1942
1943
|
...tailConsumersConfig && { tails: tailConsumersConfig },
|
|
1944
|
+
...streamingTailConsumersConfig && { streamingTails: streamingTailConsumersConfig },
|
|
1943
1945
|
...artifactsConfig && { artifacts: artifactsConfig },
|
|
1944
1946
|
...aiSearchNamespacesConfig && { aiSearchNamespaces: aiSearchNamespacesConfig },
|
|
1945
1947
|
...aiSearchInstancesConfig && { aiSearchInstances: aiSearchInstancesConfig },
|
|
@@ -1957,6 +1959,7 @@ function makeMiniflareWorker(context, options) {
|
|
|
1957
1959
|
if (options.script) workerConfig.script = options.script;
|
|
1958
1960
|
if (options.durableObjects && Object.keys(options.durableObjects).length > 0) workerConfig.durableObjects = options.durableObjects;
|
|
1959
1961
|
if (options.serviceBindings && Object.keys(options.serviceBindings).length > 0) workerConfig.serviceBindings = options.serviceBindings;
|
|
1962
|
+
if (options.outboundService !== void 0) workerConfig.outboundService = options.outboundService;
|
|
1960
1963
|
return workerConfig;
|
|
1961
1964
|
}
|
|
1962
1965
|
//#endregion
|
|
@@ -2007,16 +2010,23 @@ function buildMiniflareDevConfig(input) {
|
|
|
2007
2010
|
const shouldRunMainWorker = !enableVite && (hasWorkerSurfacePaths(mainWorkerSurfacePaths) || Boolean(mainWorkerRoutes?.routes.length));
|
|
2008
2011
|
const queueProducers = buildQueueProducers(bindings);
|
|
2009
2012
|
const queueConsumers = buildQueueConsumers(bindings);
|
|
2013
|
+
const serverConfig = loadedConfig.server;
|
|
2010
2014
|
const sharedOptions = {
|
|
2011
2015
|
port: miniflarePort,
|
|
2012
2016
|
host: miniflareHost,
|
|
2013
2017
|
kvPersist: persist ? `${persistPath}/kv` : void 0,
|
|
2014
2018
|
r2Persist: persist ? `${persistPath}/r2` : void 0,
|
|
2015
2019
|
d1Persist: persist ? `${persistPath}/d1` : void 0,
|
|
2020
|
+
cachePersist: persist ? `${persistPath}/cache` : void 0,
|
|
2016
2021
|
durableObjectsPersist: persist ? `${persistPath}/do` : void 0,
|
|
2017
2022
|
workflowsPersist: persist ? `${persistPath}/workflows` : void 0,
|
|
2018
2023
|
imagesPersist: persist ? `${persistPath}/images` : void 0,
|
|
2019
|
-
streamPersist: persist ? `${persistPath}/stream` : void 0
|
|
2024
|
+
streamPersist: persist ? `${persistPath}/stream` : void 0,
|
|
2025
|
+
...serverConfig?.https !== void 0 && { https: serverConfig.https },
|
|
2026
|
+
...serverConfig?.httpsKeyPath !== void 0 && { httpsKeyPath: serverConfig.httpsKeyPath },
|
|
2027
|
+
...serverConfig?.httpsCertPath !== void 0 && { httpsCertPath: serverConfig.httpsCertPath },
|
|
2028
|
+
...serverConfig?.inspectorPort !== void 0 && { inspectorPort: serverConfig.inspectorPort },
|
|
2029
|
+
...serverConfig?.upstream !== void 0 && { upstream: serverConfig.upstream }
|
|
2020
2030
|
};
|
|
2021
2031
|
const localBindingShimServiceConfig = buildLocalBindingShimServiceConfig(loadedConfig);
|
|
2022
2032
|
const createServiceBindings = (extraBindings = {}) => buildServiceBindings(bindings, {
|
|
@@ -2039,6 +2049,7 @@ function buildMiniflareDevConfig(input) {
|
|
|
2039
2049
|
const flagshipConfig = buildFlagshipConfig(bindings);
|
|
2040
2050
|
const analyticsEngineConfig = buildAnalyticsEngineConfig(bindings);
|
|
2041
2051
|
const tailConsumersConfig = buildTailConsumersConfig(loadedConfig);
|
|
2052
|
+
const streamingTailConsumersConfig = buildStreamingTailConsumersConfig(loadedConfig);
|
|
2042
2053
|
const artifactsConfig = buildArtifactsConfig(bindings);
|
|
2043
2054
|
const aiSearchNamespacesConfig = buildAiSearchNamespacesConfig(bindings);
|
|
2044
2055
|
const aiSearchInstancesConfig = buildAiSearchInstancesConfig(bindings);
|
|
@@ -2063,6 +2074,7 @@ function buildMiniflareDevConfig(input) {
|
|
|
2063
2074
|
flagshipConfig,
|
|
2064
2075
|
analyticsEngineConfig,
|
|
2065
2076
|
tailConsumersConfig,
|
|
2077
|
+
streamingTailConsumersConfig,
|
|
2066
2078
|
artifactsConfig,
|
|
2067
2079
|
aiSearchNamespacesConfig,
|
|
2068
2080
|
aiSearchInstancesConfig,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
1
|
+
import { r as loadConfig } from "./loader-OQ2AWpqm.js";
|
|
2
2
|
import { d as green, f as logLine, g as yellow, m as red, n as bold, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
3
3
|
import { n as getPackageVersion } from "./package-metadata-DjHBLB-z.js";
|
|
4
4
|
import { t as detectViteProject } from "./vite-utils-OVLMV605.js";
|
|
5
5
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
6
6
|
import { n as getGeneratedArtifactPaths } from "./generated-artifacts-dMJY4KAt.js";
|
|
7
|
-
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-
|
|
7
|
+
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-1yI7BiDU.js";
|
|
8
8
|
import { basename, dirname, relative, resolve } from "pathe";
|
|
9
9
|
//#region src/cli/commands/doctor.ts
|
|
10
10
|
async function runDoctorCommand(parsed, logger, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as resolveConfigForEnvironment } from "./loader-
|
|
1
|
+
import { u as resolveConfigForEnvironment } from "./loader-OQ2AWpqm.js";
|
|
2
2
|
//#region src/cli/commands/previews-support/family.ts
|
|
3
3
|
function compareConfiguredWorkerFamilies(left, right) {
|
|
4
4
|
if (left.role === "primary" && right.role !== "primary") return -1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as isEnvVarDescriptor, n as materializePreviewScopedConfig, u as loadDevflareDotenvIntoProcess } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { S as bindingsSchema, a as normalizeD1Binding, d as normalizeKVBinding, g as normalizeR2Binding, h as normalizeQueueProducer, l as normalizeHyperdriveBinding, n as getLocalKVNamespaceIdentifier, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-
|
|
2
|
+
import { S as bindingsSchema, a as normalizeD1Binding, d as normalizeKVBinding, g as normalizeR2Binding, h as normalizeQueueProducer, l as normalizeHyperdriveBinding, n as getLocalKVNamespaceIdentifier, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-GjhTATHL.js";
|
|
3
3
|
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
4
4
|
import { _ as listR2Buckets, g as listQueues, h as listKVNamespaces, i as createR2Bucket, m as listHyperdrives, n as createKVNamespace, p as listD1Databases, r as createQueue, t as createD1Database, v as listVectorizeIndexes } from "./account-resources-CsmVowJp.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
@@ -198,6 +198,16 @@ const tailConsumerSchema = z.union([z.string().min(1), z.object({
|
|
|
198
198
|
environment: z.string().min(1).optional()
|
|
199
199
|
}).strict()]);
|
|
200
200
|
/**
|
|
201
|
+
* Streaming Tail Consumer configuration.
|
|
202
|
+
*
|
|
203
|
+
* Twin of {@link tailConsumerSchema} for the wrangler `streaming_tail_consumers`
|
|
204
|
+
* field. A streaming tail consumer receives a live event stream from this Worker.
|
|
205
|
+
*/
|
|
206
|
+
const streamingTailConsumerSchema = z.union([z.string().min(1), z.object({
|
|
207
|
+
service: z.string().min(1),
|
|
208
|
+
environment: z.string().min(1).optional()
|
|
209
|
+
}).strict()]);
|
|
210
|
+
/**
|
|
201
211
|
* Trigger configuration for scheduled (cron) events.
|
|
202
212
|
*
|
|
203
213
|
* Each cron expression is validated against the Cloudflare 5-field cron grammar
|
|
@@ -229,7 +239,12 @@ const previewsConfigSchema = z.object({ includeCrons: z.boolean().optional().def
|
|
|
229
239
|
*/
|
|
230
240
|
const serverConfigSchema = z.object({
|
|
231
241
|
host: z.string().min(1).optional(),
|
|
232
|
-
port: z.number().int().min(1).max(65535).optional()
|
|
242
|
+
port: z.number().int().min(1).max(65535).optional(),
|
|
243
|
+
https: z.boolean().optional(),
|
|
244
|
+
httpsKeyPath: z.string().min(1).optional(),
|
|
245
|
+
httpsCertPath: z.string().min(1).optional(),
|
|
246
|
+
inspectorPort: z.number().int().min(1).max(65535).optional(),
|
|
247
|
+
upstream: z.string().min(1).optional()
|
|
233
248
|
}).strict().optional();
|
|
234
249
|
/**
|
|
235
250
|
* Secret declaration options.
|
|
@@ -242,7 +257,9 @@ const routeConfigSchema = z.object({
|
|
|
242
257
|
pattern: z.string(),
|
|
243
258
|
zone_name: z.string().optional(),
|
|
244
259
|
zone_id: z.string().optional(),
|
|
245
|
-
custom_domain: z.boolean().optional()
|
|
260
|
+
custom_domain: z.boolean().optional(),
|
|
261
|
+
enabled: z.boolean().optional(),
|
|
262
|
+
previews_enabled: z.boolean().optional()
|
|
246
263
|
}).superRefine((route, ctx) => {
|
|
247
264
|
if (!route.custom_domain) return;
|
|
248
265
|
if (route.pattern.includes("*")) ctx.addIssue({
|
|
@@ -456,9 +473,12 @@ const rootConfigShape = {
|
|
|
456
473
|
baseDir: z.string().optional(),
|
|
457
474
|
preserveFileNames: z.boolean().optional(),
|
|
458
475
|
logpush: z.boolean().optional(),
|
|
476
|
+
complianceRegion: z.enum(["public", "fedramp_high"]).optional(),
|
|
477
|
+
workersDev: z.boolean().optional(),
|
|
459
478
|
uploadSourceMaps: z.boolean().optional(),
|
|
460
479
|
keepVars: z.boolean().optional(),
|
|
461
480
|
tailConsumers: z.array(tailConsumerSchema).optional(),
|
|
481
|
+
streamingTailConsumers: z.array(streamingTailConsumerSchema).optional(),
|
|
462
482
|
vars: z.record(z.string(), varValueSchema).optional(),
|
|
463
483
|
secrets: z.record(z.string(), secretConfigSchema).optional(),
|
|
464
484
|
routes: z.array(routeConfigSchema).optional(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as normalizeSecretsStoreBinding } from "./schema-normalization-
|
|
1
|
+
import { _ as normalizeSecretsStoreBinding } from "./schema-normalization-GjhTATHL.js";
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
//#region src/secrets/local-secrets.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as normalizeWorkflowBinding } from "./schema-normalization-
|
|
1
|
+
import { x as normalizeWorkflowBinding } from "./schema-normalization-GjhTATHL.js";
|
|
2
2
|
import { i as findFiles, r as DEFAULT_WORKFLOW_PATTERN } from "./glob-CmQOvunB.js";
|
|
3
3
|
import { t as bundleWorkerEntry } from "./worker-bundler-dTTnYU3n.js";
|
|
4
4
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
2
2
|
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-BUoZApvE.js";
|
|
3
|
-
import { n as getConfiguredAccountId } from "./command-utils-
|
|
3
|
+
import { n as getConfiguredAccountId } from "./command-utils-_bGRraDR.js";
|
|
4
4
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
5
5
|
//#region src/cli/commands/login.ts
|
|
6
6
|
async function logResolvedAccount(cwd, logger, theme) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as materializePreviewScopedConfig, r as materializePreviewScopedString, t as isPreviewScopedName } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { l as mergeConfigForEnvironment } from "./loader-
|
|
3
|
-
import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-
|
|
2
|
+
import { l as mergeConfigForEnvironment } from "./loader-OQ2AWpqm.js";
|
|
3
|
+
import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-GjhTATHL.js";
|
|
4
4
|
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-BKp_7XJx.js";
|
|
5
5
|
import { _ as listR2Buckets, a as createVectorizeIndex, c as deleteKVNamespace, d as deleteVectorizeIndex, g as listQueues, h as listKVNamespaces, i as createR2Bucket, l as deleteQueue, m as listHyperdrives, n as createKVNamespace, o as deleteD1Database, p as listD1Databases, r as createQueue, s as deleteHyperdrive, t as createD1Database, u as deleteR2Bucket, v as listVectorizeIndexes } from "./account-resources-CsmVowJp.js";
|
|
6
6
|
//#region src/config/preview-resources.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as resolvePreviewIdentifier } from "./preview-C3Cdr8an.js";
|
|
2
|
-
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-
|
|
3
|
-
import { t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-OQ2AWpqm.js";
|
|
3
|
+
import { t as compileBuildConfig } from "./compiler-BtLp9T9N.js";
|
|
4
4
|
import { t as account } from "./cloudflare-BaloqI3H.js";
|
|
5
5
|
import { _ as yellowBold, a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, m as red, n as bold, o as dim, r as createCliTheme, u as formatTableLine } from "./ui-BUoZApvE.js";
|
|
6
|
-
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
6
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-_bGRraDR.js";
|
|
7
7
|
import { t as getDependencies } from "./dependencies-C2oxFjU_.js";
|
|
8
|
-
import { t as cleanupPreviewScopedResources } from "./preview-resources-
|
|
9
|
-
import { t as findConfigPathsUnderDirectory } from "./config-path-
|
|
10
|
-
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-
|
|
8
|
+
import { t as cleanupPreviewScopedResources } from "./preview-resources-DRWR0gaB.js";
|
|
9
|
+
import { t as findConfigPathsUnderDirectory } from "./config-path-1yI7BiDU.js";
|
|
10
|
+
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-DKPp4wqj.js";
|
|
11
11
|
//#region src/cli/preview-bindings.ts
|
|
12
12
|
function normalizeCell(value) {
|
|
13
13
|
return (value ?? "").trim().replace(/\s+/g, " ");
|