We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103c902 commit c378a3dCopy full SHA for c378a3d
packages/gatsby-telemetry/src/telemetry.ts
@@ -178,7 +178,13 @@ export class AnalyticsTracker {
178
process.env.INTERNAL_GATSBY_TELEMETRY_SESSION_ID =
179
p.gatsbyTelemetrySessionId
180
}
181
+ } else if (!process.env.INTERNAL_GATSBY_TELEMETRY_SESSION_ID) {
182
+ // in case older `gatsby-telemetry` already set `gatsbyTelemetrySessionId` property on process
183
+ // but didn't set env var - let's make sure env var is set
184
+ process.env.INTERNAL_GATSBY_TELEMETRY_SESSION_ID =
185
+ p.gatsbyTelemetrySessionId
186
187
+
188
return p.gatsbyTelemetrySessionId
189
190
0 commit comments