Skip to content

Commit

Permalink
fix: typo in al2 featureflag adapter (#6055)
Browse files Browse the repository at this point in the history
* fix: typo in featureflag adapter

* fix: use isFeatureFlagEnabled helper
  • Loading branch information
Skn0tt authored Oct 16, 2023
1 parent 96c0e4e commit 9c505f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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),
})

/**
Expand Down

1 comment on commit 9c505f1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,369
  • Package size: 379 MB

Please sign in to comment.