void 1.6.0 → 1.6.2
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/dist/{account-cmd-DRhmCWcm.mjs → account-cmd-D903EEWQ.mjs} +2 -2
- package/dist/{application-analysis-HRFsZOv3.mjs → application-analysis-DlUG-XNT.mjs} +5 -17
- package/dist/{application-routing-P4TggvWp.mjs → application-routing-GCBSwXA9.mjs} +1 -1
- package/dist/{auth-link-CVXP1G6G.mjs → auth-link-g9J7MSmP.mjs} +2 -2
- package/dist/{auth-router-D1pGdbvB.mjs → auth-router-DMZbG9Qn.mjs} +2 -2
- package/dist/cli/cli.mjs +23 -23
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/{cloudflare-auth-CEu-1Ps_.mjs → cloudflare-auth-CuS42-9A.mjs} +1 -1
- package/dist/{cloudflare-cmd-fZ6AMSWk.mjs → cloudflare-cmd-DTF19-j-.mjs} +3 -3
- package/dist/{cloudflare-config-eQunqX6A.mjs → cloudflare-config-Ce8j5S7V.mjs} +2 -2
- package/dist/{cloudflare-connect-9OZe4XVQ.mjs → cloudflare-connect-BN4dHp8i.mjs} +2 -2
- package/dist/{cloudflare-operations-CrskD4_O.mjs → cloudflare-operations-DrZGzQap.mjs} +5 -5
- package/dist/{cloudflare-operations-oLvAd9Nd.mjs → cloudflare-operations-laxRA8HN.mjs} +1 -1
- package/dist/{cloudflare-process-DjJ638A-.mjs → cloudflare-process-D9aC-jXr.mjs} +2 -2
- package/dist/{config-BBlVXZCU.mjs → config-CNDjO-15.mjs} +3 -3
- package/dist/{config-BgysUhnm.mjs → config-DMR0i3Z2.mjs} +1 -1
- package/dist/{config-BITKQ3O6.mjs → config-hL-S-Y9D.mjs} +5 -5
- package/dist/{config-WlvEcL82.mjs → config-s6TkpSat.mjs} +2 -2
- package/dist/{connect-CKvmkl2R.mjs → connect-DHepM7Xs.mjs} +3 -3
- package/dist/{db-cq5RW4Vy.mjs → db-CqfT6lhV.mjs} +18 -18
- package/dist/{db-types-C_8amnB0.mjs → db-types-DRmxBJ2K.mjs} +1 -1
- package/dist/deploy-DMhOyebt.mjs +2 -0
- package/dist/{deploy-D_gEojD2.mjs → deploy-La_Ly8g_.mjs} +38 -35
- package/dist/{deploy-managed-static-BHVbB_-A.mjs → deploy-managed-static-CESLfKHN.mjs} +13 -13
- package/dist/{deploy-transport-DEyOUfac.mjs → deploy-transport-DcI6LXhY.mjs} +2 -2
- package/dist/deploy.mjs +6 -6
- package/dist/discover-1DJD4YXD.mjs +1 -0
- package/dist/{discover-Dhkzxgdt.mjs → discover-CVFCWU7W.mjs} +1 -1
- package/dist/{dispatch-BNLB5_Gm.mjs → dispatch-DM4Xdd2l.mjs} +5 -5
- package/dist/{domain-BlH90Ods.mjs → domain-BD1KOQL3.mjs} +1 -1
- package/dist/{email-Bkq8ZL1p.mjs → email-XAspopcj.mjs} +6 -6
- package/dist/{email-cloudflare-MvJIxrwx.mjs → email-cloudflare-RxIQoPc9.mjs} +3 -3
- package/dist/{entry-CBZsCy3O.mjs → entry-DFBca6aS.mjs} +1 -1
- package/dist/{env-AvuCSeCH.mjs → env-DrYUh55t.mjs} +3 -3
- package/dist/{env-types-DqzVBKnS.mjs → env-types-Bd8DkQhl.mjs} +1 -1
- package/dist/{env-validation-C8Cmvas0.mjs → env-validation-Bosj7EVg.mjs} +1 -1
- package/dist/{env-validation-GV1oD4EV.mjs → env-validation-Del3C8AY.mjs} +2 -2
- package/dist/gen-BbT1Ku1P.mjs +1 -0
- package/dist/{gen-BD-dfjxY.mjs → gen-DSkScMIz.mjs} +4 -4
- package/dist/{handler-CKeTtYID.mjs → handler-DnI_au0K.mjs} +1 -1
- package/dist/{headers-CuTEdP9C.mjs → headers--cbz6iZ8.mjs} +1 -1
- package/dist/index.mjs +21 -21
- package/dist/{info-CJxua_db.mjs → info-BpxpsX0B.mjs} +4 -4
- package/dist/{init-B-4CluYx.mjs → init-DpVXO5S-.mjs} +12 -12
- package/dist/{list-BYSOo9fm.mjs → list-BFQ0gcML.mjs} +1 -1
- package/dist/{local-d1-BLgsNUj9.mjs → local-d1-CLVPP6v7.mjs} +1 -1
- package/dist/login-BX2gzHUt.mjs +1 -0
- package/dist/{login-CJopTWX4.mjs → login-RIw7ffPe.mjs} +1 -1
- package/dist/{logs-DE0weBsR.mjs → logs-B2OeLS4X.mjs} +1 -1
- package/dist/migrate-CUGMGaIM.mjs +1 -0
- package/dist/{migrate-ChHHZBTi.mjs → migrate-DiI50Chz.mjs} +4 -4
- package/dist/nitro.mjs +3 -3
- package/dist/{node-CZ6lGNLn.mjs → node-Bc-dBAGL.mjs} +2 -2
- package/dist/{operator-cmd-BUqsdk2K.mjs → operator-cmd-CEI5Aaza.mjs} +2 -2
- package/dist/operator-cmd-oTT2MA9G.mjs +1 -0
- package/dist/pages/client.d.mts +2 -0
- package/dist/pages/client.mjs +6 -3
- package/dist/pages/index.mjs +9 -5
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/{platform-auth-config-K4m_LE8b.mjs → platform-auth-config-ZrYm8KVs.mjs} +3 -3
- package/dist/{platform-auth-protection-KF5Vo-1I.mjs → platform-auth-protection-t6mdY4nn.mjs} +2 -2
- package/dist/{platform-auth-recovery-BOdFrl7R.mjs → platform-auth-recovery-XeBmPTXx.mjs} +2 -2
- package/dist/{platform-cmd-DpCHawGF.mjs → platform-cmd-C7BevP9b.mjs} +1 -1
- package/dist/{platform-cmd-Ds3EAV5t.mjs → platform-cmd-EXehmSYA.mjs} +3 -3
- package/dist/{platform-domain-rWJshybd.mjs → platform-domain-DR263ObA.mjs} +2 -2
- package/dist/{platform-lifecycle-D9RdGub1.mjs → platform-lifecycle-BvU_TNji.mjs} +9 -9
- package/dist/{platform-lifecycle-BH34I0rh.mjs → platform-lifecycle-CN4aXldN.mjs} +1 -1
- package/dist/{platform-management-BRefdHGD.mjs → platform-management-_UE1_GM8.mjs} +1 -1
- package/dist/{platform-management-BfLW0Zlo.mjs → platform-management-yS2sve3V.mjs} +1 -1
- package/dist/{platform-recovery-DZuZGJtt.mjs → platform-recovery-CPVk9-Q4.mjs} +2 -2
- package/dist/{plugin-inference-CdLbxZL_.mjs → plugin-inference-bQ1Be840.mjs} +4 -7
- package/dist/{prepare-BMGeKL16.mjs → prepare-BkRhDnxw.mjs} +1 -1
- package/dist/prepare-CZRVGNld.mjs +1 -0
- package/dist/{prepare-BJW-f1f1.mjs → prepare-D8L9AQbw.mjs} +9 -9
- package/dist/{project-cmd-B_bUyZ3J.mjs → project-cmd-DH3CuFC6.mjs} +4 -4
- package/dist/{project-paths-CdGv9Tmi.mjs → project-paths-G0yut6Zz.mjs} +12 -8
- package/dist/{project-tsconfig-Cf2NFjlM.mjs → project-tsconfig-BMveFb4b.mjs} +1 -1
- package/dist/{provision-BbCzpbXs.mjs → provision-B0HqoRuI.mjs} +2 -2
- package/dist/{provision-DQF6Kw-6.mjs → provision-CYhZR_Mn.mjs} +1 -1
- package/dist/{rollback-BgL0wY1J.mjs → rollback-AVwiMAkk.mjs} +1 -1
- package/dist/{route-types-CZc1YXjF.mjs → route-types-e69EqY88.mjs} +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/routing.mjs +2 -2
- package/dist/{scan-X2rDDRNa.mjs → scan-F0psanp7.mjs} +60 -14
- package/dist/{secret-CPq-B_vp.mjs → secret-szNdoeKa.mjs} +2 -2
- package/dist/{version-metadata-C8hLzQkv.mjs → version-metadata-BC3LK7Y-.mjs} +1 -1
- package/dist/wrangler-CQ5c-MtJ.mjs +1 -0
- package/dist/{wrangler-DESSbN8L.mjs → wrangler-Gn4EoY4-.mjs} +3 -3
- package/dist/{wrapper-C9SUxoj7.mjs → wrapper-B9W9RE8z.mjs} +3 -3
- package/docs/guide/edge/headers.md +3 -1
- package/docs/guide/edge/redirects.md +1 -0
- package/docs/guide/edge/static-assets.md +1 -1
- package/docs/guide/pages-routing/actions-and-forms.md +14 -0
- package/docs/guide/server-routing.md +14 -0
- package/docs/reference/api/pages.md +8 -0
- package/docs/reference/api/rewrites.md +3 -1
- package/package.json +7 -7
- package/dist/deploy-B029oHlE.mjs +0 -2
- package/dist/discover-D4mQthao.mjs +0 -1
- package/dist/gen-CIHXh9I8.mjs +0 -1
- package/dist/login-BpbYeu-n.mjs +0 -1
- package/dist/migrate-HdA6Kh2p.mjs +0 -1
- package/dist/operator-cmd-wBYyp8iQ.mjs +0 -1
- package/dist/prepare-BdxJJCMv.mjs +0 -1
- package/dist/wrangler-DUB3MGHV.mjs +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { n as __toESM, t as __commonJSMin } from "./rolldown-runtime-uD8oG6U2.mjs";
|
|
2
2
|
import { a as join, c as resolve, n as dirname, o as normalize, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
4
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
5
|
-
import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-
|
|
6
|
-
import { m as resolveBindingNames, p as readConfig, r as convertHeadersConfig, u as isNodeTarget } from "./config-
|
|
7
|
-
import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, i as assertSandboxNamespaceConfig, o as requiresSandboxPlatformImage, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync } from "./application-analysis-
|
|
4
|
+
import { r as detectFramework } from "./plugin-inference-bQ1Be840.mjs";
|
|
5
|
+
import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-G0yut6Zz.mjs";
|
|
6
|
+
import { m as resolveBindingNames, p as readConfig, r as convertHeadersConfig, u as isNodeTarget } from "./config-hL-S-Y9D.mjs";
|
|
7
|
+
import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, i as assertSandboxNamespaceConfig, o as requiresSandboxPlatformImage, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync } from "./application-analysis-DlUG-XNT.mjs";
|
|
8
8
|
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
9
|
-
import { o as validateSsrEntry } from "./entry-
|
|
9
|
+
import { o as validateSsrEntry } from "./entry-DFBca6aS.mjs";
|
|
10
10
|
import { r as hasEmailHandlers } from "./email-BHY72ixO.mjs";
|
|
11
|
-
import { c as VOID_INTERNAL_WORKER_FIRST, d as hasDocumentRoutes, f as resolveAssetConfig, i as readGeneratedAssetHeadersFile, l as edgeRulesNeedWorker, u as hasApiRoutes } from "./headers
|
|
11
|
+
import { c as VOID_INTERNAL_WORKER_FIRST, d as hasDocumentRoutes, f as resolveAssetConfig, i as readGeneratedAssetHeadersFile, l as edgeRulesNeedWorker, u as hasApiRoutes } from "./headers--cbz6iZ8.mjs";
|
|
12
12
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
13
13
|
import { s as listPlatformConnections } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
14
14
|
import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
15
15
|
import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
16
|
-
import { a as persistCloudflareConfig, c as stashCloudflareDeployPointer, i as materializeCloudflareConfig } from "./cloudflare-config-
|
|
17
|
-
import { A as syncWranglerWebSockets, C as readWranglerManagedQueueCleanupCandidates, D as sameMigrationsDir, E as resolveLiveBindingConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, N as writeWranglerPublishedTrafficSnapshot, a as LIVE_MIGRATION_TAG, c as bindingEntriesForField, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, o as acknowledgeWranglerManagedQueueRemovals, r as FRIENDLY_BINDING_NAMES, v as readExistingLiveBindingConfig, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-
|
|
16
|
+
import { a as persistCloudflareConfig, c as stashCloudflareDeployPointer, i as materializeCloudflareConfig } from "./cloudflare-config-Ce8j5S7V.mjs";
|
|
17
|
+
import { A as syncWranglerWebSockets, C as readWranglerManagedQueueCleanupCandidates, D as sameMigrationsDir, E as resolveLiveBindingConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, N as writeWranglerPublishedTrafficSnapshot, a as LIVE_MIGRATION_TAG, c as bindingEntriesForField, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, o as acknowledgeWranglerManagedQueueRemovals, r as FRIENDLY_BINDING_NAMES, v as readExistingLiveBindingConfig, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-Gn4EoY4-.mjs";
|
|
18
18
|
import { r as trustedCloudflareWorkerAccessHeaders, t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
19
19
|
import { t as ensurePlatformAccessToken } from "./cf-access-BmBT2h8_.mjs";
|
|
20
20
|
import { a as getApiUrl, c as getToken, l as getTokenSource } from "./auth-Dy8svcqQ.mjs";
|
|
21
21
|
import { n as record, t as migrateBuiltWranglerConfig } from "./cf-config-migrate-Dy8MrKgF.mjs";
|
|
22
22
|
import { l as resolveRemoteMode, n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV, t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-CuzZZyjB.mjs";
|
|
23
|
-
import { i as otherQueueConsumers, n as chooseCloudflareQueueName, o as scopedCloudflareQueueName, r as cloudflareQueueName } from "./dispatch-
|
|
23
|
+
import { i as otherQueueConsumers, n as chooseCloudflareQueueName, o as scopedCloudflareQueueName, r as cloudflareQueueName } from "./dispatch-DM4Xdd2l.mjs";
|
|
24
24
|
import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName, r as hasRevalidate } from "./isr-config-Czzb4mIq.mjs";
|
|
25
25
|
import { t as assertNoPrerenderFailures } from "./prerender-render-RlAj6hh8.mjs";
|
|
26
|
-
import { a as buildEnv, n as readVersionMetadataBinding, r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-
|
|
27
|
-
import { a as emailConfigInputs, c as renderAddressMap, d as collectPrerenderPathsNode, f as prerenderPages, i as createNodeEmailDns, l as renderEmailChecklist, n as SEND_EMAIL_BINDING, o as preflightEmail, p as prerenderPagesNode, r as applyEmailSetup, t as EMAIL_FROM_VAR, u as collectPrerenderPaths } from "./email-cloudflare-
|
|
28
|
-
import { n as completeApplicationAnalysis, t as analyzeApplication } from "./application-routing-
|
|
26
|
+
import { a as buildEnv, n as readVersionMetadataBinding, r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-BC3LK7Y-.mjs";
|
|
27
|
+
import { a as emailConfigInputs, c as renderAddressMap, d as collectPrerenderPathsNode, f as prerenderPages, i as createNodeEmailDns, l as renderEmailChecklist, n as SEND_EMAIL_BINDING, o as preflightEmail, p as prerenderPagesNode, r as applyEmailSetup, t as EMAIL_FROM_VAR, u as collectPrerenderPaths } from "./email-cloudflare-RxIQoPc9.mjs";
|
|
28
|
+
import { n as completeApplicationAnalysis, t as analyzeApplication } from "./application-routing-GCBSwXA9.mjs";
|
|
29
29
|
import { n as prepareCfFrameworkBuildOutput, r as prepareCfStaticBuildOutput, t as prepareCfBuildOutput } from "./cf-build-output-B1C8U83u.mjs";
|
|
30
30
|
import { i as validateMigrations, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
|
|
31
31
|
import { A as confirm, K as select, L as log, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
@@ -34,19 +34,19 @@ import { a as isExpiredTokenError, r as PlatformClient } from "./client-CoxPEhJq
|
|
|
34
34
|
import { o as formatCount, p as note, r as createSpinner, u as getErrorMessage } from "./output-BCdLioKP.mjs";
|
|
35
35
|
import { t as getRequestedProjectSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
36
36
|
import { i as safePositional, r as readCfUploadOutput, t as CF_VERSION_SOURCE_MAX_OUTPUT_BYTES } from "./cf-command-values-Ccl-zRhl.mjs";
|
|
37
|
-
import { a as FRAMEWORK_PRESETS, c as hasBackendFiles, i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, o as detectPreset, s as formatProjectCommand, t as createCloudflareProcessRunner, u as resolveProjectCommand } from "./cloudflare-process-
|
|
38
|
-
import { f as listSelfHostSecretNames, h as selfHostSchemaFailureMessage, i as SelfHostSecretListError, l as dischargeSelfHostEnvContext, n as SelfHostFirstDeployError, p as readEmittedWorkerVars, r as SelfHostSchemaError, s as deriveSelfHostEnvContextFromVars, t as SelfHostEnvValidationError } from "./env-validation-
|
|
39
|
-
import { a as needsWrapper, r as cleanupWrapper, t as bundleEntry } from "./wrapper-
|
|
40
|
-
import { A as promptDeployProjectConfig, C as ensureManagedHyperdrive, D as hasNonPageBackend, E as getGitCommit, F as resolveStaticBuildCommand, I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, O as hasPrerenderSources, P as resolveFullDeployBuildCommand, R as validateDeployMigrations, S as createProjectFromSlug, T as getExitCode, _ as getDeploySchemaDriftMessage, a as collectAndHashAssets, b as assertProjectDeployAccess, c as readWranglerHtmlHandling, d as printDeploySuccess, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, h as warnUnpublishedRouting, i as buildStaticManifest, j as resolveDeployLiveBindingConfig, k as log$1, l as formatDeploySummary, m as warnIgnoredNotFoundForFramework, n as runStaticDeploy, o as collectWorkerFiles, p as streamDirectR2Deploy, r as buildFrameworkManifest, s as detectNonSpaFallbackWarning, t as assembleVoidManifest, u as printDeployContext, v as hasDeploySchemaDrift, w as generateDeployWrapperIfNeeded, x as assertWorkerMainUploaded, y as assertEnvSchemaValid } from "./deploy-managed-static-
|
|
41
|
-
import { a as checkCloudflareProvisionDrift, b as resolveWorkersDevComplianceRegion, d as isQueueConfirmedAbsent, f as isRealD1Id, g as provisionCloudflareResources, i as assertValidResourceName, m as isRealKvId, s as deleteEnvVarCaseAware } from "./provision-
|
|
42
|
-
import { c as scrubWranglerAuthCredentials, n as buildSchemaProbeEnv, o as resolveDeployTransport, r as deployChildEnv, s as scrubManagedDeployBuildMarkers, t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-
|
|
37
|
+
import { a as FRAMEWORK_PRESETS, c as hasBackendFiles, i as isCleanCloudflareExit, l as resolveCloudflareOperationArgv, o as detectPreset, s as formatProjectCommand, t as createCloudflareProcessRunner, u as resolveProjectCommand } from "./cloudflare-process-D9aC-jXr.mjs";
|
|
38
|
+
import { f as listSelfHostSecretNames, h as selfHostSchemaFailureMessage, i as SelfHostSecretListError, l as dischargeSelfHostEnvContext, n as SelfHostFirstDeployError, p as readEmittedWorkerVars, r as SelfHostSchemaError, s as deriveSelfHostEnvContextFromVars, t as SelfHostEnvValidationError } from "./env-validation-Del3C8AY.mjs";
|
|
39
|
+
import { a as needsWrapper, r as cleanupWrapper, t as bundleEntry } from "./wrapper-B9W9RE8z.mjs";
|
|
40
|
+
import { A as promptDeployProjectConfig, C as ensureManagedHyperdrive, D as hasNonPageBackend, E as getGitCommit, F as resolveStaticBuildCommand, I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, O as hasPrerenderSources, P as resolveFullDeployBuildCommand, R as validateDeployMigrations, S as createProjectFromSlug, T as getExitCode, _ as getDeploySchemaDriftMessage, a as collectAndHashAssets, b as assertProjectDeployAccess, c as readWranglerHtmlHandling, d as printDeploySuccess, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, h as warnUnpublishedRouting, i as buildStaticManifest, j as resolveDeployLiveBindingConfig, k as log$1, l as formatDeploySummary, m as warnIgnoredNotFoundForFramework, n as runStaticDeploy, o as collectWorkerFiles, p as streamDirectR2Deploy, r as buildFrameworkManifest, s as detectNonSpaFallbackWarning, t as assembleVoidManifest, u as printDeployContext, v as hasDeploySchemaDrift, w as generateDeployWrapperIfNeeded, x as assertWorkerMainUploaded, y as assertEnvSchemaValid } from "./deploy-managed-static-CESLfKHN.mjs";
|
|
41
|
+
import { a as checkCloudflareProvisionDrift, b as resolveWorkersDevComplianceRegion, d as isQueueConfirmedAbsent, f as isRealD1Id, g as provisionCloudflareResources, i as assertValidResourceName, m as isRealKvId, s as deleteEnvVarCaseAware } from "./provision-B0HqoRuI.mjs";
|
|
42
|
+
import { c as scrubWranglerAuthCredentials, n as buildSchemaProbeEnv, o as resolveDeployTransport, r as deployChildEnv, s as scrubManagedDeployBuildMarkers, t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-DcI6LXhY.mjs";
|
|
43
43
|
import { n as getCfCliVersion, r as getVoidUserAgent, t as publishCloudflareWorkerSettings } from "./cf-worker-settings-CARs4Wy9.mjs";
|
|
44
44
|
import { t as sanitizeTerminalLogText } from "./terminal-log-text-DNsWJREL.mjs";
|
|
45
|
-
import { t as promptForLoginToken } from "./login-
|
|
46
|
-
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, t as CloudflareAuthenticationError } from "./cloudflare-auth-
|
|
47
|
-
import { a as createCloudflareEmptyDomainPublisher, i as createCloudflareEmptyCronPublisher } from "./cloudflare-operations-
|
|
45
|
+
import { t as promptForLoginToken } from "./login-RIw7ffPe.mjs";
|
|
46
|
+
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, t as CloudflareAuthenticationError } from "./cloudflare-auth-CuS42-9A.mjs";
|
|
47
|
+
import { a as createCloudflareEmptyDomainPublisher, i as createCloudflareEmptyCronPublisher } from "./cloudflare-operations-DrZGzQap.mjs";
|
|
48
48
|
import { n as openMigrationValidationDatabase, t as SqliteMigrationError } from "./sqlite-validation-CLJXXN93.mjs";
|
|
49
|
-
import { r as discoverFrameworkWranglerFiles, t as migrateLegacyVoidConfig } from "./migrate-
|
|
49
|
+
import { r as discoverFrameworkWranglerFiles, t as migrateLegacyVoidConfig } from "./migrate-DiI50Chz.mjs";
|
|
50
50
|
import { a as runMySqlMigrations } from "./runner-mysql-Bdmsp_x4.mjs";
|
|
51
51
|
import { i as runPgMigrations } from "./runner-pg-mYc75KfH.mjs";
|
|
52
52
|
import { t as collectGitDeployMetadata } from "./git-metadata-Cukp5kV5.mjs";
|
|
@@ -2490,13 +2490,14 @@ async function ensureContainerApplications(options) {
|
|
|
2490
2490
|
assertContainerApplicationSettings(confirmed, plan);
|
|
2491
2491
|
}
|
|
2492
2492
|
}
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2493
|
+
function readAssetHeaders(output) {
|
|
2494
|
+
if (!output.assetsDirectory) return;
|
|
2495
|
+
try {
|
|
2496
|
+
return readFileSync(join(getWorkerAssetsDir(output.directory), "_headers"), "utf8");
|
|
2497
|
+
} catch (cause) {
|
|
2498
|
+
if (cause instanceof Error && "code" in cause && cause.code === "ENOENT") return;
|
|
2499
|
+
throw cause;
|
|
2500
|
+
}
|
|
2500
2501
|
}
|
|
2501
2502
|
async function uploadAssets(options) {
|
|
2502
2503
|
if (!options.output.assetsDirectory) return;
|
|
@@ -2504,9 +2505,6 @@ async function uploadAssets(options) {
|
|
|
2504
2505
|
const manifest = {};
|
|
2505
2506
|
const byHash = /* @__PURE__ */ new Map();
|
|
2506
2507
|
const ignored = ignore().add([
|
|
2507
|
-
"/.assetsignore",
|
|
2508
|
-
"/_headers",
|
|
2509
|
-
"/_redirects",
|
|
2510
2508
|
".DS_Store",
|
|
2511
2509
|
".env",
|
|
2512
2510
|
".env.*",
|
|
@@ -2519,6 +2517,11 @@ async function uploadAssets(options) {
|
|
|
2519
2517
|
} catch (cause) {
|
|
2520
2518
|
if (!(cause instanceof Error && "code" in cause && cause.code === "ENOENT")) throw cause;
|
|
2521
2519
|
}
|
|
2520
|
+
ignored.add([
|
|
2521
|
+
"/.assetsignore",
|
|
2522
|
+
"/_headers",
|
|
2523
|
+
"/_redirects"
|
|
2524
|
+
]);
|
|
2522
2525
|
for (const entry of readdirSync(directory, {
|
|
2523
2526
|
recursive: true,
|
|
2524
2527
|
withFileTypes: true
|
|
@@ -2625,11 +2628,11 @@ async function uploadPinnedCloudflareVersion(options) {
|
|
|
2625
2628
|
content_base64: readFileSync(join(getWorkerBundleDir(options.output.directory), name)).toString("base64")
|
|
2626
2629
|
});
|
|
2627
2630
|
}
|
|
2628
|
-
const
|
|
2629
|
-
if (
|
|
2631
|
+
const assetHeaders = readAssetHeaders(options.output);
|
|
2632
|
+
if (assetHeaders !== void 0) modules.push({
|
|
2630
2633
|
name: "_headers",
|
|
2631
2634
|
content_type: "text/plain",
|
|
2632
|
-
content_base64: Buffer$2.from(
|
|
2635
|
+
content_base64: Buffer$2.from(assetHeaders).toString("base64")
|
|
2633
2636
|
});
|
|
2634
2637
|
await preflightWorkflowExports({
|
|
2635
2638
|
exports,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { a as join, c as resolve, n as dirname, r as extname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { h as needsApplicationDatabase } from "./plugin-inference-
|
|
3
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
4
|
-
import { t as discoverSchema } from "./discover-
|
|
5
|
-
import { u as isNodeTarget } from "./config-
|
|
2
|
+
import { h as needsApplicationDatabase } from "./plugin-inference-bQ1Be840.mjs";
|
|
3
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
4
|
+
import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
|
|
5
|
+
import { u as isNodeTarget } from "./config-hL-S-Y9D.mjs";
|
|
6
6
|
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
7
|
-
import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers
|
|
7
|
+
import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers--cbz6iZ8.mjs";
|
|
8
8
|
import { s as shouldLinkDeployProject, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
9
|
-
import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-
|
|
9
|
+
import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-Gn4EoY4-.mjs";
|
|
10
10
|
import { n as buildMigrationPlanBundle } from "./plan-BOD70XGS.mjs";
|
|
11
11
|
import { l as getTokenSource } from "./auth-Dy8svcqQ.mjs";
|
|
12
|
-
import { t as findEnvFile } from "./env-types-
|
|
12
|
+
import { t as findEnvFile } from "./env-types-Bd8DkQhl.mjs";
|
|
13
13
|
import { i as collectFiles, t as collectPages } from "./isr-config-Czzb4mIq.mjs";
|
|
14
|
-
import { a as buildEnv } from "./version-metadata-
|
|
15
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
14
|
+
import { a as buildEnv } from "./version-metadata-BC3LK7Y-.mjs";
|
|
15
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CNDjO-15.mjs";
|
|
16
16
|
import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
|
|
17
17
|
import { L as log$1, N as intro, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
18
18
|
import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-zEwuGrEJ.mjs";
|
|
19
19
|
import { c as platformErrorMessage, i as isCliOutdatedError, n as PlatformApiError, o as isHeadersTimeoutError, s as parsePlatformErrorBody } from "./client-CoxPEhJq.mjs";
|
|
20
20
|
import { f as import_picocolors, h as sanitizeTerminalText, m as printSuccess, o as formatCount, p as note, r as createSpinner, u as getErrorMessage } from "./output-BCdLioKP.mjs";
|
|
21
21
|
import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-Bq0M8MtO.mjs";
|
|
22
|
-
import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-
|
|
23
|
-
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-
|
|
24
|
-
import { a as needsWrapper, i as generateWrapper } from "./wrapper-
|
|
22
|
+
import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-D9aC-jXr.mjs";
|
|
23
|
+
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-Del3C8AY.mjs";
|
|
24
|
+
import { a as needsWrapper, i as generateWrapper } from "./wrapper-B9W9RE8z.mjs";
|
|
25
25
|
import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
26
|
-
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-
|
|
26
|
+
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-DcI6LXhY.mjs";
|
|
27
27
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
28
28
|
import { createDeployArtifact, createDeployUploadPayload } from "@void/deploy-core";
|
|
29
29
|
import { createHash } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
2
|
import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
|
|
3
3
|
import { t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-CuzZZyjB.mjs";
|
|
4
|
-
import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-
|
|
5
|
-
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-
|
|
4
|
+
import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-BC3LK7Y-.mjs";
|
|
5
|
+
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-B0HqoRuI.mjs";
|
|
6
6
|
import { readWranglerTopLevelString } from "@void/deploy-cloudflare";
|
|
7
7
|
// src/cli/deploy-transport.ts
|
|
8
8
|
/**
|
package/dist/deploy.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as join, c as resolve } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { p as readConfig, u as isNodeTarget } from "./config-
|
|
3
|
-
import { o as validateSsrEntry } from "./entry-
|
|
2
|
+
import { p as readConfig, u as isNodeTarget } from "./config-hL-S-Y9D.mjs";
|
|
3
|
+
import { o as validateSsrEntry } from "./entry-DFBca6aS.mjs";
|
|
4
4
|
import { r as hasEmailHandlers } from "./email-BHY72ixO.mjs";
|
|
5
|
-
import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers
|
|
5
|
+
import { d as hasDocumentRoutes, f as resolveAssetConfig, u as hasApiRoutes } from "./headers--cbz6iZ8.mjs";
|
|
6
6
|
import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName } from "./isr-config-Czzb4mIq.mjs";
|
|
7
|
-
import { t as analyzeApplication } from "./application-routing-
|
|
7
|
+
import { t as analyzeApplication } from "./application-routing-GCBSwXA9.mjs";
|
|
8
8
|
import { t as prepareCfBuildOutput$1 } from "./cf-build-output-B1C8U83u.mjs";
|
|
9
|
-
import { o as detectPreset } from "./cloudflare-process-
|
|
10
|
-
import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-
|
|
9
|
+
import { o as detectPreset } from "./cloudflare-process-D9aC-jXr.mjs";
|
|
10
|
+
import { I as resolveStaticDeployPreset, L as toManifestSchedulesAndQueues, M as resolveDeployWorkerMain, N as resolveDeployWranglerCompat, R as validateDeployMigrations, a as collectAndHashAssets, f as mergeAndLintRoutingRules, g as assertDeploySchemaDriftFree, i as buildStaticManifest, o as collectWorkerFiles, t as assembleVoidManifest, x as assertWorkerMainUploaded } from "./deploy-managed-static-CESLfKHN.mjs";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { createDeployArtifact } from "@void/deploy-core";
|
|
13
13
|
// src/deploy.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
3
|
import { existsSync, statSync } from "node:fs";
|
|
4
4
|
// src/drizzle/discover.ts
|
|
5
5
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as join, i as isAbsolute, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { t as discoverSchema } from "./discover-
|
|
4
|
-
import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-
|
|
2
|
+
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
|
+
import { t as discoverSchema } from "./discover-CVFCWU7W.mjs";
|
|
4
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-hL-S-Y9D.mjs";
|
|
5
5
|
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
6
6
|
import { n as CLOUDFLARE_QUEUE_NAMES_BUILD_ENV } from "./env-CuzZZyjB.mjs";
|
|
7
|
-
import { n as ensureProjectTsconfig } from "./project-tsconfig-
|
|
8
|
-
import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-
|
|
7
|
+
import { n as ensureProjectTsconfig } from "./project-tsconfig-BMveFb4b.mjs";
|
|
8
|
+
import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-DRmxBJ2K.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
11
11
|
import { normalizePath } from "vite";
|
|
@@ -25,7 +25,7 @@ async function runDomainCommand(root, args) {
|
|
|
25
25
|
}
|
|
26
26
|
async function runCloudflareDomainCommand(root, args) {
|
|
27
27
|
if (args.projectSlug) throw new Error("domain: --project selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
28
|
-
const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-
|
|
28
|
+
const { changeCloudflareDomain, listCloudflareDomains } = await import("./cloudflare-operations-laxRA8HN.mjs");
|
|
29
29
|
if (args.subcommand === "add") {
|
|
30
30
|
const result = await changeCloudflareDomain(root, args.hostname, "add");
|
|
31
31
|
note("Cloudflare Custom Domains manages the DNS record and TLS certificate in the zone on your account.", "Cloudflare Domain");
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { p as readConfig } from "./config-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
|
+
import { p as readConfig } from "./config-hL-S-Y9D.mjs";
|
|
4
4
|
import { i as scanEmailHandlersSync } from "./email-BHY72ixO.mjs";
|
|
5
|
-
import { M as writeProvisionedWranglerConfig } from "./wrangler-
|
|
5
|
+
import { M as writeProvisionedWranglerConfig } from "./wrangler-Gn4EoY4-.mjs";
|
|
6
6
|
import { c as getToken, u as openBrowser } from "./auth-Dy8svcqQ.mjs";
|
|
7
|
-
import { a as emailConfigInputs, c as renderAddressMap, i as createNodeEmailDns, l as renderEmailChecklist, o as preflightEmail, r as applyEmailSetup, s as probeMx } from "./email-cloudflare-
|
|
7
|
+
import { a as emailConfigInputs, c as renderAddressMap, i as createNodeEmailDns, l as renderEmailChecklist, o as preflightEmail, r as applyEmailSetup, s as probeMx } from "./email-cloudflare-RxIQoPc9.mjs";
|
|
8
8
|
import { A as confirm, L as log, U as password, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
9
9
|
import { n as PlatformApiError, r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
10
10
|
import { f as import_picocolors, l as formatUrl, m as printSuccess, p as note, r as createSpinner } from "./output-BCdLioKP.mjs";
|
|
11
11
|
import { i as resolveCommandProjectId } from "./resolve-project-D0YNnJfm.mjs";
|
|
12
|
-
import { o as resolveDeployTransport } from "./deploy-transport-
|
|
13
|
-
import { a as discoverRootWranglerConfig, c as runWranglerAuthToken, l as deriveWorkerName, o as createDeployWranglerRunner, s as isWranglerNonInteractiveOrCI } from "./deploy-
|
|
12
|
+
import { o as resolveDeployTransport } from "./deploy-transport-DcI6LXhY.mjs";
|
|
13
|
+
import { a as discoverRootWranglerConfig, c as runWranglerAuthToken, l as deriveWorkerName, o as createDeployWranglerRunner, s as isWranglerNonInteractiveOrCI } from "./deploy-La_Ly8g_.mjs";
|
|
14
14
|
import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
15
15
|
import { tmpdir } from "node:os";
|
|
16
16
|
import { execSync } from "node:child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
|
|
2
2
|
import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
4
|
-
import { p as readConfig } from "./config-
|
|
4
|
+
import { p as readConfig } from "./config-hL-S-Y9D.mjs";
|
|
5
5
|
import { i as voidWarn, r as voidLog } from "./log-D9hwSySP.mjs";
|
|
6
6
|
import { i as readProjectIdField } from "./project-CLwxcEdq.mjs";
|
|
7
|
-
import { p as findBindingNameOwner, u as ensureWranglerCompat } from "./wrangler-
|
|
7
|
+
import { p as findBindingNameOwner, u as ensureWranglerCompat } from "./wrangler-Gn4EoY4-.mjs";
|
|
8
8
|
import { n as scopedAccessCredentials } from "./cf-access-pejlJmuy.mjs";
|
|
9
9
|
import { n as ensurePlatformProxyAccess } from "./cf-access-BmBT2h8_.mjs";
|
|
10
10
|
import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-Dy8svcqQ.mjs";
|
|
@@ -12,7 +12,7 @@ import { u as stripInternalEnvKeys } from "./env-CuzZZyjB.mjs";
|
|
|
12
12
|
import { i as collectFiles } from "./isr-config-Czzb4mIq.mjs";
|
|
13
13
|
import { i as renderPrerenderPaths, n as outputFileForPath, r as readPrerenderPathsResponse } from "./prerender-render-RlAj6hh8.mjs";
|
|
14
14
|
import { t as renderDefaultErrorPage } from "./error-pages-COVBnzK7.mjs";
|
|
15
|
-
import { a as buildEnv } from "./version-metadata-
|
|
15
|
+
import { a as buildEnv } from "./version-metadata-BC3LK7Y-.mjs";
|
|
16
16
|
import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
17
17
|
import { isRecord } from "@void/deploy-core";
|
|
18
18
|
import { execFile } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
3
|
import { n as isIdentifier, o as moduleExportName } from "./ast-Cv0JwXqb.mjs";
|
|
4
4
|
import { n as bindingResolver, o as unwrapStaticExpression, t as bindingNames } from "./ast-bindings-BkivMJIo.mjs";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
2
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
3
3
|
import { c as getToken } from "./auth-Dy8svcqQ.mjs";
|
|
4
|
-
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-
|
|
4
|
+
import { r as generateEnvTypes, t as findEnvFile } from "./env-types-Bd8DkQhl.mjs";
|
|
5
5
|
import { H as outro, L as log } from "./dist-D23AAMxT.mjs";
|
|
6
6
|
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
7
7
|
import { m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
|
|
8
|
-
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-
|
|
8
|
+
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-Del3C8AY.mjs";
|
|
9
9
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
10
10
|
// src/cli/env.ts
|
|
11
11
|
async function runEnvCommand(root, args) {
|
|
@@ -25,7 +25,7 @@ async function runCheck(root, useRemoteSecrets) {
|
|
|
25
25
|
const platform = readDeploymentPlatform(root);
|
|
26
26
|
if (platform === "none") throw new Error("env: Deployment is disabled. Run `void init` to choose a platform.");
|
|
27
27
|
if (platform === "cloudflare") {
|
|
28
|
-
const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
28
|
+
const { listCloudflareSecrets, resolveCloudflareOperationContext } = await import("./cloudflare-operations-laxRA8HN.mjs");
|
|
29
29
|
remoteSecrets = await listCloudflareSecrets(resolveCloudflareOperationContext(root));
|
|
30
30
|
} else {
|
|
31
31
|
const token = getToken(root);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
3
|
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
// src/codegen/env-types.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as SelfHostSchemaError, a as computeInvalidEmittedKeys, c as deriveSelfHostSchemaFacts, p as readEmittedWorkerVars } from "./env-validation-
|
|
1
|
+
export { r as SelfHostSchemaError, a as computeInvalidEmittedKeys, c as deriveSelfHostSchemaFacts, p as readEmittedWorkerVars } from "./env-validation-Del3C8AY.mjs";
|
|
@@ -3,9 +3,9 @@ import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
|
3
3
|
import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
4
4
|
import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
|
|
5
5
|
import { a as findReservedEnvKeys, c as reservedEnvKeysMessage, i as findLegacyEnvFiles, o as isClientEnvKey, r as LOCAL_ENV_FILE, s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
6
|
-
import { t as findEnvFile } from "./env-types-
|
|
6
|
+
import { t as findEnvFile } from "./env-types-Bd8DkQhl.mjs";
|
|
7
7
|
import { t as loadUserEnvFile } from "./load-user-env-CSwdofj0.mjs";
|
|
8
|
-
import { l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-
|
|
8
|
+
import { l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-D9aC-jXr.mjs";
|
|
9
9
|
import { existsSync, readFileSync } from "node:fs";
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
11
|
import { parseRootWranglerConfig, readWranglerTopLevelString } from "@void/deploy-cloudflare";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runGenCommand } from "./gen-DSkScMIz.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join, n as dirname, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as readProjectPaths } from "./project-paths-
|
|
3
|
-
import { l as getDatabaseDialect, p as readConfig } from "./config-
|
|
2
|
+
import { n as readProjectPaths } from "./project-paths-G0yut6Zz.mjs";
|
|
3
|
+
import { l as getDatabaseDialect, p as readConfig } from "./config-hL-S-Y9D.mjs";
|
|
4
4
|
import { n as readJournal, t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
5
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
5
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CNDjO-15.mjs";
|
|
6
6
|
import { t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
|
|
7
7
|
import { K as select, L as log, O as cancel, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
8
8
|
import { m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
@@ -329,7 +329,7 @@ async function runModel(root, name, columns) {
|
|
|
329
329
|
const existing = readFileSync(barrelPath, "utf-8");
|
|
330
330
|
if (!existing.includes(exportLine)) writeFileSync(barrelPath, existing.trimEnd() + "\n" + exportLine + "\n");
|
|
331
331
|
} else writeFileSync(barrelPath, exportLine + "\n");
|
|
332
|
-
const { prepareProject } = await import("./prepare-
|
|
332
|
+
const { prepareProject } = await import("./prepare-CZRVGNld.mjs");
|
|
333
333
|
await prepareProject(root);
|
|
334
334
|
log.step(`Created ${relative(root, modelPath)}`);
|
|
335
335
|
log.step(`Updated ${relative(root, barrelPath)}`);
|
|
@@ -15,7 +15,7 @@ import { t as runValidation } from "./validator-CTfmzZYb.mjs";
|
|
|
15
15
|
var VoidAssetRewriteError = class extends Error {
|
|
16
16
|
name = "VoidAssetRewriteError";
|
|
17
17
|
constructor(destination) {
|
|
18
|
-
super(`c.rewrite() cannot re-dispatch to a static asset path (${JSON.stringify(destination)}). Runtime rewrites only reach routes and SSR entries inside the worker — static asset handlers run in front of the worker. To rewrite into an asset, use a static \`routing.rewrites\` rule in void.
|
|
18
|
+
super(`c.rewrite() cannot re-dispatch to a static asset path (${JSON.stringify(destination)}). Runtime rewrites only reach routes and SSR entries inside the worker — static asset handlers run in front of the worker. To rewrite into an asset, use a static \`routing.rewrites\` rule in void.config.ts or a \`200!\` entry in _redirects. See https://void.cloud/guide/edge/rewrites#runtime-rewrites-cannot-reach-static-assets`);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
function defineHandler(...args) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-
|
|
2
|
+
import { a as convertRewritesConfig, d as isProtocolRelative, f as parseHostPrefixedSource, i as convertRedirectsConfig, n as convertFallbacksConfig, o as countSplats, r as convertHeadersConfig, t as VALID_REDIRECT_STATUSES } from "./config-hL-S-Y9D.mjs";
|
|
3
3
|
import { i as voidWarn } from "./log-D9hwSySP.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
// src/asset-routing.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
|
|
2
2
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, o as normalize, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
4
|
-
import { l as inferBindingsFromSource, m as applyBindingOverrides, n as FRAMEWORK_SCAN_DIRS, t as DEFAULT_SCAN_DIRS, u as staticModuleReferences } from "./plugin-inference-
|
|
5
|
-
import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-
|
|
6
|
-
import { i as loadVoidAuthConfig, n as devAuthConfigImporter, o as viteAuthConfigImporter, t as AUTH_CONFIG_ENVIRONMENT } from "./config-
|
|
7
|
-
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, u as isNodeTarget } from "./config-
|
|
8
|
-
import { f as invalidateSourceAnalysis,
|
|
4
|
+
import { l as inferBindingsFromSource, m as applyBindingOverrides, n as FRAMEWORK_SCAN_DIRS, t as DEFAULT_SCAN_DIRS, u as staticModuleReferences } from "./plugin-inference-bQ1Be840.mjs";
|
|
5
|
+
import { n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-G0yut6Zz.mjs";
|
|
6
|
+
import { i as loadVoidAuthConfig, n as devAuthConfigImporter, o as viteAuthConfigImporter, t as AUTH_CONFIG_ENVIRONMENT } from "./config-s6TkpSat.mjs";
|
|
7
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, u as isNodeTarget } from "./config-hL-S-Y9D.mjs";
|
|
8
|
+
import { f as invalidateSourceAnalysis, m as isRouteEnabledForEnvironment, o as resolveLayoutIds } from "./scan-F0psanp7.mjs";
|
|
9
9
|
import { i as isMemberExpression, n as isIdentifier, r as isLiteral } from "./ast-Cv0JwXqb.mjs";
|
|
10
10
|
import { n as bindingResolver } from "./ast-bindings-BkivMJIo.mjs";
|
|
11
|
-
import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, i as assertSandboxNamespaceConfig, n as DEFAULT_SANDBOX_CLASS_NAME, p as scanJobsSync, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync, u as scanQueuesSync } from "./application-analysis-
|
|
11
|
+
import { a as hasSandboxSqliteMigration, c as sandboxContainerConfig, i as assertSandboxNamespaceConfig, n as DEFAULT_SANDBOX_CLASS_NAME, p as scanJobsSync, r as SANDBOX_MIGRATION_TAG, s as resolveSandboxConfig, t as analyzeApplicationSync, u as scanQueuesSync } from "./application-analysis-DlUG-XNT.mjs";
|
|
12
12
|
import { i as voidWarn, n as voidError, r as voidLog, t as setShowTimestamp } from "./log-D9hwSySP.mjs";
|
|
13
13
|
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
14
|
-
import { a as validateSsrEntries, n as SSR_SERVER_ENTRY_RELATIVE_PATHS, o as validateSsrEntry, t as SSR_CLIENT_ENTRY_RELATIVE_PATHS } from "./entry-
|
|
14
|
+
import { a as validateSsrEntries, n as SSR_SERVER_ENTRY_RELATIVE_PATHS, o as validateSsrEntry, t as SSR_CLIENT_ENTRY_RELATIVE_PATHS } from "./entry-DFBca6aS.mjs";
|
|
15
15
|
import { r as hasEmailHandlers } from "./email-BHY72ixO.mjs";
|
|
16
|
-
import { a as isAssetBypassRule, d as hasDocumentRoutes, l as edgeRulesNeedWorker, n as mergeRoutingRules, o as isGeneratedAssetHeaders, p as resolveAssetRoutingPolicy, s as resolveAssetWorkerBypass, t as lintRoutingPhases, u as hasApiRoutes } from "./headers
|
|
16
|
+
import { a as isAssetBypassRule, d as hasDocumentRoutes, l as edgeRulesNeedWorker, n as mergeRoutingRules, o as isGeneratedAssetHeaders, p as resolveAssetRoutingPolicy, s as resolveAssetWorkerBypass, t as lintRoutingPhases, u as hasApiRoutes } from "./headers--cbz6iZ8.mjs";
|
|
17
17
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
18
18
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
19
19
|
import { n as readGeneratedWranglerConfigFile } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
20
|
-
import { c as stashCloudflareDeployPointer, i as materializeCloudflareConfig, l as ensureGitignoreLines, o as restoreCloudflarePreviewPointer } from "./cloudflare-config-
|
|
21
|
-
import { A as syncWranglerWebSockets, E as resolveLiveBindingConfig, O as syncWranglerBindings, T as readWranglerWebSocketTombstones, a as LIVE_MIGRATION_TAG, b as readRootWranglerConfig, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as normalizeWranglerCompatibilityFlags, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, p as findBindingNameOwner, u as ensureWranglerCompat, v as readExistingLiveBindingConfig, x as readWranglerCompat } from "./wrangler-
|
|
22
|
-
import { n as writeLocalD1PersistState, t as resolveLocalD1Target } from "./local-d1-
|
|
20
|
+
import { c as stashCloudflareDeployPointer, i as materializeCloudflareConfig, l as ensureGitignoreLines, o as restoreCloudflarePreviewPointer } from "./cloudflare-config-Ce8j5S7V.mjs";
|
|
21
|
+
import { A as syncWranglerWebSockets, E as resolveLiveBindingConfig, O as syncWranglerBindings, T as readWranglerWebSocketTombstones, a as LIVE_MIGRATION_TAG, b as readRootWranglerConfig, d as ensureWranglerCompatibilityDate, f as ensureWranglerNodejsAlsFlag, g as normalizeWranglerCompatibilityFlags, h as nextDurableObjectMigrationTag, k as syncWranglerDurableObjects, m as hasDurableObjectSqliteMigration, p as findBindingNameOwner, u as ensureWranglerCompat, v as readExistingLiveBindingConfig, x as readWranglerCompat } from "./wrangler-Gn4EoY4-.mjs";
|
|
22
|
+
import { n as writeLocalD1PersistState, t as resolveLocalD1Target } from "./local-d1-CLVPP6v7.mjs";
|
|
23
23
|
import { n as scopedAccessCredentials } from "./cf-access-pejlJmuy.mjs";
|
|
24
24
|
import { n as ensurePlatformProxyAccess } from "./cf-access-BmBT2h8_.mjs";
|
|
25
25
|
import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-Dy8svcqQ.mjs";
|
|
26
26
|
import { t as migrateBuiltWranglerConfig } from "./cf-config-migrate-Dy8MrKgF.mjs";
|
|
27
27
|
import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
|
|
28
28
|
import { a as findReservedEnvKeys, c as reservedEnvKeysMessage, i as findLegacyEnvFiles, l as resolveRemoteMode, o as isClientEnvKey, r as LOCAL_ENV_FILE, s as loadLocalEnv } from "./env-CuzZZyjB.mjs";
|
|
29
|
-
import { i as writeFileIfChanged, r as syncAuthTypesInProjectTsconfig } from "./project-tsconfig-
|
|
30
|
-
import { a as readDeployBuildQueueNames, r as cloudflareQueueName, s as drizzlePlugin, t as generateQueueResolverSource } from "./dispatch-
|
|
29
|
+
import { i as writeFileIfChanged, r as syncAuthTypesInProjectTsconfig } from "./project-tsconfig-BMveFb4b.mjs";
|
|
30
|
+
import { a as readDeployBuildQueueNames, r as cloudflareQueueName, s as drizzlePlugin, t as generateQueueResolverSource } from "./dispatch-DM4Xdd2l.mjs";
|
|
31
31
|
import { _ as parseCapturedMessage, a as DEV_INBOX_ENV_VAR, c as DEV_INBOX_TOKEN_ENV_VAR, f as clearDevBuffer, g as listDevMessages, l as DEV_INBOX_TOKEN_HEADER, m as findDevMessage, n as DEV_INBOX_ACK_VALUE, o as DEV_INBOX_MAX_CAPTURE_BYTES, s as DEV_INBOX_PREFIX, t as DEV_INBOX_ACK_HEADER, u as DEV_INBOX_TOKEN_QUERY, v as pushToDevBuffer } from "./dev-inbox-CUUS6iUg.mjs";
|
|
32
|
-
import { n as findEnvFileForPaths, r as generateEnvTypes, t as findEnvFile } from "./env-types-
|
|
32
|
+
import { n as findEnvFileForPaths, r as generateEnvTypes, t as findEnvFile } from "./env-types-Bd8DkQhl.mjs";
|
|
33
33
|
import { t as loadUserEnvFile } from "./load-user-env-CSwdofj0.mjs";
|
|
34
34
|
import { n as INTERNAL_BINDING_PREFIXES, t as INTERNAL_BINDING_EXACT_NAMES } from "./env-raw-e8qgqAzQ.mjs";
|
|
35
35
|
import { t as ASSET_EXTENSIONS } from "./routing-assets-DJIVOrCh.mjs";
|
|
36
36
|
import { a as resolveDistDir, n as collectRevalidate, o as resolveWorkerDirName, r as hasRevalidate, t as collectPages } from "./isr-config-Czzb4mIq.mjs";
|
|
37
37
|
import { t as assertNoPrerenderFailures } from "./prerender-render-RlAj6hh8.mjs";
|
|
38
|
-
import { r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-
|
|
39
|
-
import { f as prerenderPages, n as SEND_EMAIL_BINDING, p as prerenderPagesNode } from "./email-cloudflare-
|
|
38
|
+
import { r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-BC3LK7Y-.mjs";
|
|
39
|
+
import { f as prerenderPages, n as SEND_EMAIL_BINDING, p as prerenderPagesNode } from "./email-cloudflare-RxIQoPc9.mjs";
|
|
40
40
|
import { r as defer } from "./validation-error-uAAjlsiW.mjs";
|
|
41
41
|
import { i as safeJsonStringify } from "./protocol-COyySMki.mjs";
|
|
42
|
-
import { n as completeApplicationAnalysis } from "./application-routing-
|
|
43
|
-
import { a as syncAuthTypesFile, i as removeAuthTypesIfPresent, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-
|
|
44
|
-
import { a as defineMiddleware, c as defineScheduled, i as defineHead, n as basicAuth, o as defineQueue, r as defineHandler, s as defineRender, t as VoidAssetRewriteError } from "./handler-
|
|
42
|
+
import { n as completeApplicationAnalysis } from "./application-routing-GCBSwXA9.mjs";
|
|
43
|
+
import { a as syncAuthTypesFile, i as removeAuthTypesIfPresent, n as generateQueueTypes, t as generateRouteTypes } from "./route-types-e69EqY88.mjs";
|
|
44
|
+
import { a as defineMiddleware, c as defineScheduled, i as defineHead, n as basicAuth, o as defineQueue, r as defineHandler, s as defineRender, t as VoidAssetRewriteError } from "./handler-DnI_au0K.mjs";
|
|
45
45
|
import module, { builtinModules, createRequire } from "node:module";
|
|
46
46
|
import { chmodSync, closeSync, cpSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync, writeSync } from "node:fs";
|
|
47
47
|
import { createRunnableDevEnvironment, defaultServerConditions, isRunnableDevEnvironment, loadEnv, normalizePath, parseSync, resolveEnvPrefix } from "vite";
|
|
@@ -3574,7 +3574,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
3574
3574
|
const hasSqlMigrations = existsSync(migrationsDir);
|
|
3575
3575
|
if (!hasSqlMigrations && !auth?.enabled) return;
|
|
3576
3576
|
const migrateAuth = async (databaseUrl) => {
|
|
3577
|
-
const { runLocalVoidAuthMigrations } = await import("./node-
|
|
3577
|
+
const { runLocalVoidAuthMigrations } = await import("./node-Bc-dBAGL.mjs");
|
|
3578
3578
|
await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth?.configPath, databaseUrl, devAuthConfigImporter(server));
|
|
3579
3579
|
};
|
|
3580
3580
|
const mysqlAuth = dialect === "mysql" && auth?.enabled === true;
|
|
@@ -3790,7 +3790,7 @@ function createServerRuntimeOptimizerPlugin(dialect, readCompat) {
|
|
|
3790
3790
|
if (name === "client") return;
|
|
3791
3791
|
if (!environment.resolve?.conditions?.includes("workerd")) return { optimizeDeps: { exclude: ["void"] } };
|
|
3792
3792
|
return { optimizeDeps: {
|
|
3793
|
-
exclude: ["void"],
|
|
3793
|
+
exclude: ["void", "better-auth"],
|
|
3794
3794
|
include: ["void > email-validator", ...DATABASE_DRIVER_DEPS[dialect]]
|
|
3795
3795
|
} };
|
|
3796
3796
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-
|
|
3
|
-
import { p as readConfig } from "./config-
|
|
4
|
-
import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-
|
|
5
|
-
import { n as VOID_LOCK_FILE } from "./cloudflare-config-
|
|
2
|
+
import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-bQ1Be840.mjs";
|
|
3
|
+
import { p as readConfig } from "./config-hL-S-Y9D.mjs";
|
|
4
|
+
import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-DlUG-XNT.mjs";
|
|
5
|
+
import { n as VOID_LOCK_FILE } from "./cloudflare-config-Ce8j5S7V.mjs";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
7
7
|
import { isRecord } from "@void/deploy-core";
|
|
8
8
|
// src/cli/info.ts
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
3
|
-
import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-
|
|
4
|
-
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-
|
|
2
|
+
import { r as detectFramework } from "./plugin-inference-bQ1Be840.mjs";
|
|
3
|
+
import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-G0yut6Zz.mjs";
|
|
4
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-hL-S-Y9D.mjs";
|
|
5
5
|
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
6
6
|
import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
7
|
-
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-
|
|
8
|
-
import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-
|
|
7
|
+
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-Ce8j5S7V.mjs";
|
|
8
|
+
import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-Gn4EoY4-.mjs";
|
|
9
9
|
import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
|
|
10
10
|
import { c as getToken } from "./auth-Dy8svcqQ.mjs";
|
|
11
11
|
import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
|
|
12
|
-
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-
|
|
13
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
12
|
+
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-BMveFb4b.mjs";
|
|
13
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CNDjO-15.mjs";
|
|
14
14
|
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-D23AAMxT.mjs";
|
|
15
15
|
import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-DRo8gzni.mjs";
|
|
16
16
|
import { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
|
17
17
|
import { l as formatUrl, m as printSuccess, p as note } from "./output-BCdLioKP.mjs";
|
|
18
18
|
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-Bq0M8MtO.mjs";
|
|
19
|
-
import { s as formatProjectCommand } from "./cloudflare-process-
|
|
19
|
+
import { s as formatProjectCommand } from "./cloudflare-process-D9aC-jXr.mjs";
|
|
20
20
|
import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
21
|
-
import { t as promptForLoginToken } from "./login-
|
|
22
|
-
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-
|
|
23
|
-
import { t as connectCloudflare } from "./cloudflare-connect-
|
|
21
|
+
import { t as promptForLoginToken } from "./login-RIw7ffPe.mjs";
|
|
22
|
+
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-EXehmSYA.mjs";
|
|
23
|
+
import { t as connectCloudflare } from "./cloudflare-connect-BN4dHp8i.mjs";
|
|
24
24
|
import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
|
|
25
|
-
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-
|
|
25
|
+
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-DiI50Chz.mjs";
|
|
26
26
|
import { createRequire } from "node:module";
|
|
27
27
|
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
28
28
|
import { parseSync } from "vite";
|
|
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
|
|
|
42
42
|
}
|
|
43
43
|
async function showCloudflareDeployments(root, slug) {
|
|
44
44
|
if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
45
|
-
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
45
|
+
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-laxRA8HN.mjs");
|
|
46
46
|
const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
|
|
47
47
|
if (status.versions.length === 0) {
|
|
48
48
|
outro(`No deployments for ${status.workerName}.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { b as readRootWranglerConfig } from "./wrangler-
|
|
2
|
+
import { b as readRootWranglerConfig } from "./wrangler-Gn4EoY4-.mjs";
|
|
3
3
|
import { r as getMiniflareDatabasePath } from "./runner-5MCSimKx.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { createHash } from "node:crypto";
|