Skip to content

Commit db3f91f

Browse files
authored
replacing underscore with dashes for bootstrap featureflags (#2703)
1 parent a7146ca commit db3f91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontends/main/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const processFeatureFlags = () => {
1515
for (const [key, value] of Object.entries(process.env)) {
1616
if (key.startsWith(`NEXT_PUBLIC_${featureFlagPrefix}`)) {
1717
bootstrapFeatureFlags[
18-
key.replace(`NEXT_PUBLIC_${featureFlagPrefix}`, "")
18+
key.replace(`NEXT_PUBLIC_${featureFlagPrefix}`, "").replaceAll("_", "-")
1919
] = value === "True" ? true : JSON.stringify(value)
2020
}
2121
}

0 commit comments

Comments
 (0)