@deepsel/cms-utils
Advanced tools
| /** | ||
| * Returns the appropriate default backend host. | ||
| * - Server-side (Node/Astro SSR): reads BACKEND_URL env var, falls back to 'http://localhost:8000' | ||
| * - Server-side (Node/Astro SSR): reads PUBLIC_URL env var, falls back to 'http://localhost:8000' | ||
| * - Browser: '' (empty string = relative URL, routes through nginx) | ||
| */ | ||
| export declare function getDefaultBackendHost(): string; |
| /** | ||
| * Returns the appropriate default backend host. | ||
| * - Server-side (Node/Astro SSR): reads BACKEND_URL env var, falls back to 'http://localhost:8000' | ||
| * - Server-side (Node/Astro SSR): reads PUBLIC_URL env var, falls back to 'http://localhost:8000' | ||
| * - Browser: '' (empty string = relative URL, routes through nginx) | ||
@@ -9,3 +9,3 @@ */ | ||
| return ''; | ||
| return process.env.BACKEND_URL || 'http://localhost:8000'; | ||
| return process.env.PUBLIC_URL || 'http://localhost:8000'; | ||
| } |
+1
-1
| { | ||
| "name": "@deepsel/cms-utils", | ||
| "version": "1.9.1", | ||
| "version": "1.9.2", | ||
| "description": "Helper utilities for Deepsel CMS", | ||
@@ -5,0 +5,0 @@ "repository": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
51159
-0.01%