Skip to content

Commit 892b696

Browse files
committed
fix
1 parent 4338413 commit 892b696

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

packages/basehub/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# basehub
22

3+
## 9.4.2
4+
5+
### Patch Changes
6+
7+
- fix
8+
39
## 9.4.1
410

511
### Patch Changes

packages/basehub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "basehub",
33
"description": "A very fast Headless CMS.",
44
"author": "JB <[email protected]>",
5-
"version": "9.4.1",
5+
"version": "9.4.2",
66
"license": "MIT",
77
"repository": "basehub-ai/basehub",
88
"bugs": "https://github.com/basehub-ai/basehub/issues",

packages/basehub/src/bin/util/get-stuff-from-env.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const getStuffFromEnv = async (options?: Options) => {
179179
}
180180
}
181181

182-
const ref =
182+
let ref =
183183
options.ref ??
184184
basehubUrl.searchParams.get("ref") ??
185185
getEnvVar("REF") ??
@@ -295,6 +295,10 @@ export const getStuffFromEnv = async (options?: Options) => {
295295
gitBranch ? `__git_branch_${gitBranch}` : ""
296296
}${gitCommitSHA ? `__git_commit_sha_${gitCommitSHA}` : ""}`;
297297

298+
if (!ref && resolvedRef) {
299+
ref = resolvedRef.ref;
300+
}
301+
298302
return {
299303
draft,
300304
previewRef,

playground/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# playground
22

3+
## 0.0.257
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
9+
310
## 0.0.256
411

512
### Patch Changes

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playground",
33
"private": true,
4-
"version": "0.0.256",
4+
"version": "0.0.257",
55
"scripts": {
66
"dev": "next dev --port 3003",
77
"build": "next build",

0 commit comments

Comments
 (0)