@valbuild/server 0.45.0 → 0.46.0

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.
@@ -77,13 +77,11 @@ type ValServerOverrides = Partial<{
77
77
  */
78
78
  valContentUrl: string;
79
79
  /**
80
- * The full name of this Val project.
81
- *
82
- * Typically this is set using the VAL_NAME env var.
80
+ * The cloud name of this Val project.
83
81
  *
84
82
  * @example "myorg/my-project"
85
83
  */
86
- valName: string;
84
+ valCloud: string;
87
85
  /**
88
86
  * After Val is enabled, redirect to this url.
89
87
  *
@@ -2017,9 +2017,9 @@ async function initHandlerOptions(route, opts) {
2017
2017
  if (!maybeGitBranch) {
2018
2018
  throw new Error("VAL_GIT_BRANCH env var must be set in proxy mode");
2019
2019
  }
2020
- const maybeValName = opts.valName || process.env.VAL_NAME;
2020
+ const maybeValName = opts.valCloud || process.env.VAL_CLOUD_NAME || process.env.VAL_NAME; // VAL_NAME is deprecated
2021
2021
  if (!maybeValName) {
2022
- throw new Error("VAL_NAME env var must be set in proxy mode");
2022
+ throw new Error("VAL_CLOUD_NAME env var must be set in proxy mode");
2023
2023
  }
2024
2024
  return {
2025
2025
  mode: "proxy",
@@ -2017,9 +2017,9 @@ async function initHandlerOptions(route, opts) {
2017
2017
  if (!maybeGitBranch) {
2018
2018
  throw new Error("VAL_GIT_BRANCH env var must be set in proxy mode");
2019
2019
  }
2020
- const maybeValName = opts.valName || process.env.VAL_NAME;
2020
+ const maybeValName = opts.valCloud || process.env.VAL_CLOUD_NAME || process.env.VAL_NAME; // VAL_NAME is deprecated
2021
2021
  if (!maybeValName) {
2022
- throw new Error("VAL_NAME env var must be set in proxy mode");
2022
+ throw new Error("VAL_CLOUD_NAME env var must be set in proxy mode");
2023
2023
  }
2024
2024
  return {
2025
2025
  mode: "proxy",
@@ -1987,9 +1987,9 @@ async function initHandlerOptions(route, opts) {
1987
1987
  if (!maybeGitBranch) {
1988
1988
  throw new Error("VAL_GIT_BRANCH env var must be set in proxy mode");
1989
1989
  }
1990
- const maybeValName = opts.valName || process.env.VAL_NAME;
1990
+ const maybeValName = opts.valCloud || process.env.VAL_CLOUD_NAME || process.env.VAL_NAME; // VAL_NAME is deprecated
1991
1991
  if (!maybeValName) {
1992
- throw new Error("VAL_NAME env var must be set in proxy mode");
1992
+ throw new Error("VAL_CLOUD_NAME env var must be set in proxy mode");
1993
1993
  }
1994
1994
  return {
1995
1995
  mode: "proxy",
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "types": "dist/valbuild-server.cjs.d.ts",
15
- "version": "0.45.0",
15
+ "version": "0.46.0",
16
16
  "scripts": {
17
17
  "typecheck": "tsc --noEmit",
18
18
  "test": "jest",
@@ -24,9 +24,9 @@
24
24
  "concurrently": "^7.6.0"
25
25
  },
26
26
  "dependencies": {
27
- "@valbuild/core": "~0.45.0",
28
- "@valbuild/shared": "~0.45.0",
29
- "@valbuild/ui": "~0.45.0",
27
+ "@valbuild/core": "~0.46.0",
28
+ "@valbuild/shared": "~0.46.0",
29
+ "@valbuild/ui": "~0.46.0",
30
30
  "express": "^4.18.2",
31
31
  "image-size": "^1.0.2",
32
32
  "queue": "^6.0.2",