Skip to content

Commit 15cf4a2

Browse files
LekoArtspieh
andauthored
fix(gatsby): correct opt-in percentage for QUERY_ON_DEMAND and LAZY_IMAGES (#28579) (#28622)
(cherry picked from commit c21dac9) Co-authored-by: Michal Piechowiak <[email protected]>
1 parent 6297917 commit 15cf4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gatsby/src/utils/flags.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const activeFlags: Array<IFlag> = [
9898
noCI: true,
9999
testFitness: (): fitnessEnum => {
100100
// Take a 10% of slice of users.
101-
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 100)) {
101+
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 10)) {
102102
let isPluginSharpNewEnoughOrNotInstalled = false
103103
try {
104104
// Try requiring plugin-sharp so we know if it's installed or not.
@@ -141,7 +141,7 @@ const activeFlags: Array<IFlag> = [
141141
noCI: true,
142142
testFitness: (): fitnessEnum => {
143143
// Take a 10% of slice of users.
144-
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 100)) {
144+
if (sampleSiteForExperiment(`QUERY_ON_DEMAND`, 10)) {
145145
const semverConstraints = {
146146
// Because of this, this flag will never show up
147147
"gatsby-plugin-sharp": `>=2.10.0`,

0 commit comments

Comments
 (0)