neonctl 2.35.0 → 2.35.1
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/dev/env.js +8 -4
- package/package.json +2 -2
package/dist/dev/env.js
CHANGED
|
@@ -45,8 +45,9 @@ export class MissingBranchContextError extends Error {
|
|
|
45
45
|
* the branch is missing, we stop with a {@link DevEnvMismatchError} pointing at
|
|
46
46
|
* `neonctl deploy`. Otherwise `fetchEnv` evaluates the policy.
|
|
47
47
|
* 2. no `neon.ts`, but a project + branch are known -> `pullConfig` reads the
|
|
48
|
-
* branch's live state (
|
|
49
|
-
* `fetchEnv` resolves what is actually enabled
|
|
48
|
+
* branch's live state (Auth / Data API enablement plus any object-storage
|
|
49
|
+
* buckets) into a config, then `fetchEnv` resolves what is actually enabled —
|
|
50
|
+
* so a branch with a bucket gets its `AWS_*` storage vars pulled with no policy.
|
|
50
51
|
* 3. otherwise -> throw {@link MissingBranchContextError}.
|
|
51
52
|
*
|
|
52
53
|
* Unlike {@link resolveDevEnv}, this never swallows errors — callers decide how to
|
|
@@ -78,8 +79,11 @@ export const resolveNeonEnvVars = async (ctx) => {
|
|
|
78
79
|
branchId: ctx.branchId,
|
|
79
80
|
...apiOptions(ctx),
|
|
80
81
|
});
|
|
81
|
-
// `pulled.config` is already a `Config` (static auth/dataApi toggles
|
|
82
|
-
// tuning closure), so it feeds
|
|
82
|
+
// `pulled.config` is already a `Config` (static auth/dataApi toggles, any
|
|
83
|
+
// object-storage `preview.buckets`, and a branch tuning closure), so it feeds
|
|
84
|
+
// straight into fetchEnv — no wrapping needed. pullConfig excludes functions and
|
|
85
|
+
// the AI Gateway (neither can be faithfully read back), so fetchEnv never probes
|
|
86
|
+
// the functions API here and only mints a storage credential when a bucket exists.
|
|
83
87
|
return await fetchAndProject(pulled.config, ctx);
|
|
84
88
|
}
|
|
85
89
|
throw new MissingBranchContextError("No project/branch context found. Link a branch (`neonctl link` / " +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neonctl",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.1",
|
|
4
4
|
"description": "CLI tool for Neon Serverless Postgres",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"yargs": "17.7.2",
|
|
54
54
|
"@neon/sdk": "1.2.0",
|
|
55
55
|
"@neon/config": "0.9.5",
|
|
56
|
-
"@neon/config-runtime": "0.9.
|
|
56
|
+
"@neon/config-runtime": "0.9.6",
|
|
57
57
|
"@neon/env": "0.11.4"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|