Skip to content

Commit

Permalink
only disable ssr on v4
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Sep 13, 2021
1 parent cf59c74 commit 230df2f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/gatsby/src/utils/flags.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from "lodash"
import semver from "semver"

// import sampleSiteForExperiment from "./sample-site-for-experiment"
import sampleSiteForExperiment from "./sample-site-for-experiment"

// Does this experiment run for only builds
type executingCommand = "build" | "develop" | "all"
Expand Down Expand Up @@ -101,15 +101,18 @@ const activeFlags: Array<IFlag> = [
experimental: false,
description: `Server Side Render (SSR) pages on full reloads during develop. Helps you detect SSR bugs and fix them without needing to do full builds. See umbrella issue for how to update custom webpack config.`,
umbrellaIssue: `https://gatsby.dev/dev-ssr-feedback`,
testFitness: (): fitnessEnum => false,
// testFitness: (): fitnessEnum => {
// // TODO Re-enable after gatsybcamp
// if (sampleSiteForExperiment(`DEV_SSR`, 20)) {
// return `OPT_IN`
// } else {
// return true
// }
// },
testFitness: (): fitnessEnum => {
// TODO Re-enable after gatsybcamp
if (_CFLAGS_.GATSBY_MAJOR === `4`) {
return false
}

if (sampleSiteForExperiment(`DEV_SSR`, 20)) {
return `OPT_IN`
} else {
return true
}
},
},
{
name: `QUERY_ON_DEMAND`,
Expand Down

0 comments on commit 230df2f

Please sign in to comment.