@woodsportal/hubspot-kit 1.0.39-dev.0 → 1.0.39-dev.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woodsportal/hubspot-kit",
3
- "version": "1.0.39-dev.0",
3
+ "version": "1.0.39-dev.1",
4
4
  "description": "WoodsCLI — HubSpot CMS dev kit by WoodsPortal. wp CLI, Vite presets, module-config overlay, and theme/module build pipelines.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,10 +28,15 @@ if (stg === prod) {
28
28
  }
29
29
 
30
30
  const mode = resolvePortalViteMode()
31
- const expected = loadEnv(mode, root, '').VITE_PUBLIC_REST_API_ENDPOINT?.replace(/\/$/, '')
31
+ const fromFile = loadEnv(mode, root, '').VITE_PUBLIC_REST_API_ENDPOINT
32
+ const fromEnv =
33
+ process.env.VITE_PUBLIC_REST_API_ENDPOINT || process.env.WOODPORTAL_API_BASE_URL
34
+ const expected = (fromFile || fromEnv)?.replace(/\/$/, '')
32
35
 
33
36
  if (!expected) {
34
- console.error(`[verify-cdn-api] Missing VITE_PUBLIC_REST_API_ENDPOINT in .env.${mode}`)
37
+ console.error(
38
+ `[verify-cdn-api] Missing VITE_PUBLIC_REST_API_ENDPOINT in .env.${mode} (or VITE_PUBLIC_REST_API_ENDPOINT / WOODPORTAL_API_BASE_URL env)`,
39
+ )
35
40
  process.exit(1)
36
41
  }
37
42