mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Handle unresolved docs env references
This commit is contained in:
parent
51636b14ae
commit
3f212df1dc
@ -6,7 +6,7 @@ const replaceMePlaceholder = "REPLACE_ME";
|
||||
|
||||
function envOrUndefined(value: string | undefined): string | undefined {
|
||||
const normalized = value?.trim().replace(/^["']|["']$/g, "");
|
||||
if (normalized == null || normalized === "" || normalized === replaceMePlaceholder || normalized.startsWith(placeholderPrefix)) {
|
||||
if (normalized == null || normalized === "" || normalized === replaceMePlaceholder || normalized.startsWith(placeholderPrefix) || normalized.startsWith("$(")) {
|
||||
return undefined;
|
||||
}
|
||||
return normalized;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user