From 9c505f17db0a09935c83ddbe0dd410bfac225c06 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 16 Oct 2023 10:04:54 +0200 Subject: [PATCH] fix: typo in al2 featureflag adapter (#6055) * fix: typo in featureflag adapter * fix: use isFeatureFlagEnabled helper --- src/lib/build.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/build.mjs b/src/lib/build.mjs index 38f8c63cb0d..cd744022597 100644 --- a/src/lib/build.mjs +++ b/src/lib/build.mjs @@ -3,6 +3,8 @@ import process from 'process' import build from '@netlify/build' +import { isFeatureFlagEnabled } from '../utils/feature-flags.mjs' + import { getBootstrapURL } from './edge-functions/bootstrap.mjs' import { featureFlags as edgeFunctionsFeatureFlags } from './edge-functions/consts.mjs' @@ -58,7 +60,7 @@ export const getBuildOptions = ({ const getFeatureFlagsFromSiteInfo = (siteInfo) => ({ ...siteInfo.feature_flags, // see https://github.com/netlify/pod-dev-foundations/issues/581#issuecomment-1731022753 - zisi_golang_use_al2: siteInfo.featureFlags?.cli_golang_use_al2, + zisi_golang_use_al2: isFeatureFlagEnabled('cli_golang_use_al2', siteInfo), }) /**